Given an array of a 999,999 numbers, from 1 to a 1,000,000, there's one number missing. The array is not sorted, and you can only access the array using a function getNumber(), which pops one number from the array. Each number in the array can only be accessed once. There's one number missing, from 1 to 1 million. which number is this?
Development Interview Questions
137,363 development interview questions shared by candidates
How would you call fire brigade if your office catches fire? Consider you dont have internet, telephone, or any means of communication.
1) Implement atoi 2) correct bug in the code that deletes head from linked list 3) Given string of digits like "72388" and int n, delete n characters from the sting such the resulting string contains minimal number representation, you must preserve relative position of digits. Example: if st="72388" and n=2, the answer is 238.
Why is the beach light red? lighthouse
How will you test a search engine
Reversal of letters in each word of a sentence in the most efficient way
array of +ve nums, find pairs that add up to a given value
- Given an array of integers (of any value, from MIN_INT to MAX_INT), how would you find the consecutive integers with the largest sum, and return their sum?
given value is 9876. print nine thousand eight hunder seventy six
Delete n-th element from linked list. Note, you don't have a pointer to the Head of the list.
Viewing 1541 - 1550 interview questions