unspoken reflections of my heart
interview questions – part 3
Question 1:
We form a 300-digit number using 100 0′s, 100 1′s and 100 2′s. Implement an algorithm to check whether the number formed is a square number or not.
Question 2:
There are two infinitely long tables. Coins are placed on one of those tables(number of coins unknown). Among those coins, 16 are placed with head facing up. The remaining are with tail facing up.
You are blindfolded and you do not know where the 16 coins are. The task is to do a particular task repeatedly such that after it is done, both the tables have the same number of coins with heads up. You can flip coins or move coins from one table to another.
Question 3:
Using two sandclocks, one which empties in 7 minutes and the other which empties in 11 minutes, how do we calculate a time interval of 15 minutes?
You might also like:| Print article | This entry was posted by eskay on March 12, 2009 at 6:52 am, and is filed under interviews, math tricks. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |




