A hundred prisoners are each locked in a room with three pirates, one of whom will walk the plank in the morning. Each prisoner has 10 bottles of wine, one of which has been poisoned; and each pirate has 12 coins, one of which is counterfeit and weighs either more or less than a genuine coin. In the room is a single switch, which the prisoner may either leave as it is, or flip. Before being led into the rooms, the prisoners are all made to wear either a red hat or a blue hat; they can see all the other prisoners' hats, but not their own. Meanwhile, a six-digit prime number of monkeys multiply until their digits reverse, then all have to get across a river using a canoe that can hold at most two monkeys at a time. But half the monkeys always lie and the other half always tell the truth. Given that the Nth prisoner knows that one of the monkeys doesn't know that a pirate doesn't know the product of two numbers between 1 and 100 without knowing that the N+1th prisoner has flipped the switch in his room or not after having determined which bottle of wine was poisoned and what color his hat is, what is the solution to this puzzle?
If you ask a great candidate this sort of nonsensical questions they just might walk out. And why wouldn’t they? They have options and they don’t have to put up with questions that have no bearing on their ability to be effective at their job. http://www.businessinsider.com/how-google-hires-people-2013-6
That tells me enough about the company culture to know I don’t want to work there.
Isn't this a joke?
No, solve it.
The question is, what color is the hat the drunk monkey masturbated in after the N+2th prisoner flipped the switch a prime number of times and fell into the river as he tried to determine whether the coin left at the edge of the plank by the pirate, was counterfeit or not? 🤔
You forgot to tell them how many shits it took that morning. Rookie mistake
Can we skip 2020?
The answer is 42.
For the people that don’t get this, it is obviously a joke. It’s a consolidated shit spin on many brain teasers
Spotted the guy who doesn't know dynamic programming! Nope. It's not a joke, you just have to think about it the right way. Go back up to the board and give it another shot - we still have 17 min left.
But i won’t get enough time to answer your “other” questions about why my solution isn’t < O(1) time!!
Did you just club together 6 different silly interview puzzlers circa 1990?
I am the answer! Kilometres and kilometres! In these days of degenerating decency of Miami beach to Washington DC when diplomacy and duplicity become interchangeable from complicated America to America!!!”
17