Salon.com Mobile: "1) You have 25 horses. What is the minimum number of races in which you can find the top three? In one race you can race five horses, and you don’t have a timer.
2) Determine whether the binary representation of a number is a palindrome or not. Code it on a white board.
3) Given a dictionary, with all possible anagrams of a word, how would you test it out and what is the data structure that you will use to construct it with design of the same?
4) You have two strings, each of which burns in exactly one hour, although not at a constant rate. How do you measure 45 minutes with only these two strings?
0 comments:
Post a Comment