Finding Two Numbers Whose Sum is Closest to Zero

Question

You have a list of 1 million integers, and you need to find the two numbers whose sum is closest to zero.

  • What algorithm would you use?

  • What’s the time complexity of your solution?

Details
Purchase An Answer Below

Have a similar question?