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

# Latest Job Interview Questions » Interview Puzzles

## Cubic array

Posted by Job-Interview
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 ...

## Given n stairs, how many number of ways can you climb up if you can setp either 1 or 2 stairs at a time?

Posted by Job-Interview
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 ...

## How much rope can you steal

Posted by CommonInterview
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 ...

## Find angle between two clock hands for any given time

Posted by Student-looking-for-job (http://www.thinkfarahead.com)
Was asked this question interviewing in Microsoft (Contractor position) SDE.
Wikipedia provides formula, but it is plain stupid to expect me to come ...

## N-Gas stations problem

Posted by CodeGuru
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 ...