Every single interviewer asked a puzzle question. The most complex was: You're standing in a boat in a reservoir of water that is filled to the brim. There is a brick sitting on the bottom of the boat. If you pick up the brick and throw it into the reservoir, will the water overflow?
MISSING VALUE Interview Questions
6,577,548 interview questions shared by candidates
Given nested arrays, write an enumerator class such that next() returns the elements in sequential order, e.g.: [1,[4,3],6,[5,[1,0]]] -> 1, 4, 3, 6, 5, 1, 0 also implement allObjects for this class
Mark likes to listen to music while travelling. His iPod™ contains N songs and he wants to listen to L (not necessarily different) songs during a trip. So he creates a playlist such that: • Every song is played at least once. • A song can be played again only if at least K other songs have been played Mark wants to know how many different playlists are possible. Can you help Mark determine this number? As the number can be very large, display number modulo 1,000,000,007. You are given N, K and L.
What would make you a great flight attendant?
identify the number of 1s in an integer is odd or even
You have 2 buckets in a room and one bucket has 17 Red balls, 19 Green Balls, 21 Blue Balls, 23 Yellow Balls. You are blindfolded and you need to pick one ball at a time and put in the bucket#2. You should stop at a point where you are confident that the color of the ball you are putting in already exists in the bucket#2. When would you stop?
Strengths and weaknesses
Tell us what has been your best work achievement to this point in your career ? What made it important ?
input string = aabbbccccaaa, maintain the insertion order and output should be a2b3c4a3
If you have a file containing millions of integers, how would you sort the data in the file using extremely limited resources, such a s 1GB of memory?
Viewing 1401 - 1410 interview questions