1

Possible Duplicate:
Easy interview question got harder: given numbers 1..100, find the missing number(s)

I know there is better solution than taking sum and then difference from sum of all 100 numbers and then searching for all possibilities. I was asked about this question in an interview. They also told me that i cant use hasing or sorting

Community
  • 1
  • 1
D J
  • 57
  • 2
  • This has already been solved, please see the following: http://stackoverflow.com/questions/3492302/easy-interview-question-got-harder-given-numbers-1-100-find-the-missing-numbe/3492967#3492967 –  Apr 27 '12 at 04:22

0 Answers0