A and B in a game. Each choose a different number. Roll two dice, take the sum. The one closer to the result wins. Go first or second, choose which number?
Interns Interview Questions
248,360 interns interview questions shared by candidates
Why would you want to work here.
If you have two sand glass timers, one with 7 minutes worth of sand and another with 4 minutes worth of sand, how do you use both to precisely time 12 minutes?
Where do you see yourself in five years?
Given a set of tags, how would you keep track of duplicate tags?
There is a museum organized as NxN room. Some rooms are locked and inaccessible. Other rooms are open and some rooms have guards. Guards can only move north, south, east and west, only through open rooms and only within the museum. For each room, find the shortest distance to a guard. What is the time complexity of your algorithm?
Implement a fast exponentiation function
Given a generic tree, how would you pick a node at random with uniform probability?
Logic Puzzle : How would you measure exactly 9mins using a 4 minutes and a 7 minutes hourglass
Common interview problems like string processing. Remove repeated chars in a string.
Viewing 591 - 600 interview questions