Log In

Find the missing number

Posted on: February 25th, 2014 by
Comments Disabled

You have an array with 99 distinct entries, each entry being an integer from 1 to 100. Find the missing number in the shortest possible time and O(1) memory.

Bonus: Now you have an array with 98 distinct entries, each entry being an integer from 1 to 100. Find the two missing entries in the shortest possible time and O(1) memory.

- via Mind your decision


Comments are closed.


{"result":"error", "message":"You can't access this resource as it requires an 'view' access for the website id = 1."}