IBM Interview Question

The GURU coding question: A fixed Size array is given, the target is 9. Find as many two numbers from the array that add up to the target. Do not Print the duplicates!

Interview Answer

Anonymous

Jan 7, 2018

You can do it in multiple ways. I used 2 embedded for loops to find out any pair that add up to 9 and HashSet to keep track of doesExist boolean.