Write a function(int[]) -> int that returns the lowest unassigned integer. For example [] -> 1 (empty set), [1] -> 2, [5, 3, 1] -> 2. Basically just sort the array, iterate, and compare current and previous. If there is a gap then that's your number.
Engineer Interview Questions
933,580 engineer interview questions shared by candidates
How do you determine if the light switch works in a refrigerator with the door closed?
If you have an unsorted array of numbers from 1-100, except 1 of those numbers is missing, how do you determine which number is missing
given a list of tuples of movie watched times, find how many unique minutes of the movie did the viewer watch e.g. [(0,15),(10,25)]. The viewer watched 25 minutes of the movie.
Print a binary tree by vertical level order like 1 2 4 3 5 print : 3 2 1 5 4
Given a string find the first non-repeated character.
given an array of numbers to remove the duplicates
Draw a bridge and you have three people trying to cross? Seriously>
The questions were not very difficult but you really need to have all the concepts crystal-clear and be ready to apply them successfully. One of the questions was "how to count the letters in this string:" "The quick brown fox jumps over the lazy dog";
Viewing 121 - 130 interview questions