Puzzle: A pirate ship with total crew of N pirates acquired a chest with K gold coins. Now they have to divide up the loot.
By long term pirate trad ...
Company where asked this question:
Search results for coin
In other terms, you have random number generator function Rnd2 you need to produce Rnd6 function by using Rnd2.
Fair coin flip
Posted by Job-Interview
"You flip a fair coin 20 times in a row and it comes up heads every single time. You flip the coin one more time. What is the probability of tails on ...
Coins in the box
Posted by Microsoft-Interview
You are given a box 2 inches by 1000 inches in size, and an unlimited supply of coins. Each coin is exactly one inch in diameter.
How many coins can ...
There is a table on which a number of coins are placed. You also know that there are as many coins with Head up as many coins with Tail up and the num ...
Imagine you have eight coins, seven of which weigh the same and one that doesn’t (it’s heavier). You need to use a pair of scales to find out what ...
« previous1 next »