Latest Job Interview Questions » Interview Puzzles

In other terms, you have random number generator function Rnd2 you need to produce Rnd6 function by using Rnd2.

Given a cubic array made up of NxNxN smaller cubes: the cubic array is N cubes wide, N cubes deep and N cubes high. Question: How many cubes are on ...
Full question: Given N step stair, how many number of ways can you climb if you use either 1 or 2 at a time? Answer It will be F(n+1) fibonacci numb ...
Two fifty foot ropes are suspended from a forty foot ceiling, about twenty feet apart.    Armed with only a knife, how much of the rope can you stea ...
Answer: This is an example of so called mixed sequence. There are two parts. The numbers on even spaces are 10,9,8,7,6 and the numbers on odd spaces ...
Was asked this question interviewing in Microsoft (Contractor position) SDE. Wikipedia provides formula, but it is plain stupid to expect me to come ...
There are n gas stations positioned along a circular road. Each has a limited supply of gas. You can only drive clockwise around the road. You start w ...
Treasure hunt: You are standing next to the ditch which is 30ft deep and 100ft length. On the other side of the ditch there is a treasure chest. You ...