<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6309069204584200907</atom:id><lastBuildDate>Tue, 29 Nov 2011 20:38:26 +0000</lastBuildDate><category>Probability puzzles</category><category>Logic Puzzle</category><category>Science Brain Teasers</category><title>Puzzles from real interviews</title><description>This website lists many puzzles that appeared in many technical interview questions. Part of technical-interview.com</description><link>http://puzzles-interview.blogspot.com/</link><managingEditor>noreply@blogger.com (Administrator)</managingEditor><generator>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PuzzlesFromRealInterviews" /><feedburner:info uri="puzzlesfromrealinterviews" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-156567903569023920</guid><pubDate>Wed, 30 Jun 2010 13:15:00 +0000</pubDate><atom:updated>2010-06-30T06:15:00.251-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Logic Puzzle</category><title>Timepieces</title><description>A sundial is a timepiece that has the fewest number of moving parts. Which timepiece has the most moving parts?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Answer &lt;/b&gt;&lt;br /&gt;
&lt;span class="textblock"&gt;An Hourglass&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-156567903569023920?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/Fzd5CpNWfe4/timepieces.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/06/timepieces.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-9163813746202395957</guid><pubDate>Tue, 18 May 2010 18:19:00 +0000</pubDate><atom:updated>2010-05-18T11:19:14.964-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Science Brain Teasers</category><title>Band Camp</title><description>Mogmatt's marching band played their show and then listened to it. They played the show almost perfectly and yet when they listened to it, it was all messed up. How could that have happened?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ans &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="textblock"&gt;The band was hearing their echo. Because they were marching at the time, they were all different distances from the wall and their echoes played at different times.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-9163813746202395957?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/WQKLu9E-bks/band-camp.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/05/band-camp.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-2596568345117765448</guid><pubDate>Tue, 18 May 2010 18:18:00 +0000</pubDate><atom:updated>2010-05-18T11:18:34.552-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Science Brain Teasers</category><title>Bird on the Moon</title><description>If a light oxygen tank were tied to a bird so that it can breathe on the moon, would the bird fly faster, slower or the same speed as it does on earth? (Remember that there is less gravity on the moon)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ans &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="textblock"&gt;A bird cannot fly on the moon because there is no air to suspend it.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-2596568345117765448?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/0GGhn_ewaaA/bird-on-moon.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/05/bird-on-moon.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3005725259653555943</guid><pubDate>Tue, 18 May 2010 18:17:00 +0000</pubDate><atom:updated>2010-05-18T11:17:43.037-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Science Brain Teasers</category><title>Water in the Cup</title><description>A man in a restaurant asked a waiter for a juice glass, a dinner plate, water, a match, and a lemon wedge. The man poured enough water onto the plate to cover it.&lt;br /&gt;
"If you can get the water on the plate into this glass without touching or moving this plate, I will give you $100," the man said. "You can use the match and lemon to do this."&lt;br /&gt;
A few minutes later, the waiter walked away with $100 in his pocket. How did the waiter get the water into the glass?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ans &lt;/b&gt;&lt;br /&gt;
&lt;span class="textblock"&gt;First, the waiter stuck the match into the lemon wedge, so that it would stand straight. Then he lit the match, and put it in the middle of the plate with the lemon. Then, he placed the glass upside-down over the match. As the flame used up the oxygen in the glass, it created a small vacuum, which sucked in the water through the space between the glass and the plate. Thus, the waiter got the water into the glass without touching or moving the plate.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3005725259653555943?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/dndhJ-N2CMU/water-in-cup.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/05/water-in-cup.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3550901568041409232</guid><pubDate>Thu, 29 Apr 2010 20:00:00 +0000</pubDate><atom:updated>2010-04-29T13:00:50.449-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Logic Puzzle</category><title>Trapdoors</title><description>There are five doors, one leads to the exit, the others lead to traps. They are in a line. The clues tell you which position the doors are in the line and where the door to freedom is. All the clues are true. Each door has a clue written on it. The clues read:&lt;br /&gt;
&lt;br /&gt;
The blue door: This door is two spots away from the door to freedom.&lt;br /&gt;
The red door: This door is at the far right, and is two spots away from the blue door.&lt;br /&gt;
The purple door: This door is not next to the door to freedom.&lt;br /&gt;
The green door: This door is left of the blue door.&lt;br /&gt;
The orange door: This door is not next to the red or blue doors.&lt;br /&gt;
&lt;br /&gt;
Which door leads to freedom?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ans&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The orange door leads to freedom.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3550901568041409232?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/_FDBpZUJ7F8/trapdoors.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>2</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/trapdoors.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3108818666656203637</guid><pubDate>Tue, 27 Apr 2010 20:46:00 +0000</pubDate><atom:updated>2010-04-27T13:46:43.339-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Logic Puzzle</category><title>Tinman's Pick</title><description>&lt;b&gt;Puzzle&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Tinman was in quite a pickle. He was choosing a vehicle that he had to drive for the next 7 years, and he had to make the best decision possible. He had only five choices to choose from, and the choices each had different qualities that made them better or worse.&lt;br /&gt;
&lt;br /&gt;
If the third choice was worse than the first choice and the second choice as good as the fifth, but the fifth choice was only as good as the worst choice leaving the fourth choice a little better than the third but not as good as the first, and the second was the worst choice to go with, which choice should Tinman go with if he wanted the best vehicle?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Answer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Tinman should go with the first choice. In order from worst to best, the choices are:&lt;br /&gt;
&lt;br /&gt;
5th/2nd, 3rd, 4th, 1st.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3108818666656203637?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/eTOdKypExBg/tinmans-pick.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/tinmans-pick.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-7045832685438446735</guid><pubDate>Tue, 27 Apr 2010 20:45:00 +0000</pubDate><atom:updated>2010-04-27T13:45:34.339-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Logic Puzzle</category><title>Five Cards</title><description>&lt;b&gt;Puzzle:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I was playing a game of five card draw poker with a bunch of logicians. By the time we had finished bidding and were just about to reveal our cards, I was pretty confident I would win of the four of us remaining. I had three nines, some face card (I can't remember what suit or even whether it was a jack, queen, or king) and a four. (Or was it a five? I can't remember.)&lt;br /&gt;
&lt;br /&gt;
I was even more sure when two of my opponents laid down their cards. One had a pair of fours and a pair of sevens, the other had a pair of twos and a pair of eights. My third opponent, however, laid down his five cards face down in a row. He said, "I have a straight, and the cards are, from lowest to highest: a ten, a jack, a queen, a king, and an ace. I have at least one card of each of the four suits: clubs, spades, hearts, and diamonds. I am fairly certain that this is the winning hand, but I'm feeling generous today, and I will give a third of the pot to whoever can determine which suit I have two cards of.&lt;br /&gt;
&lt;br /&gt;
Now I know you can't figure it out without some clues. Here they are:&lt;br /&gt;
&lt;br /&gt;
1. The king is next to at least one diamond.&lt;br /&gt;
2. The queen is next to exactly one heart.&lt;br /&gt;
3. The jack is next to at least one spade, but is not next to any hearts.&lt;br /&gt;
4. The ten is next to at least one club.&lt;br /&gt;
5. The ace does not border any black cards, nor does it border any diamonds.&lt;br /&gt;
6. My two cards of the same suit are not next to each other.&lt;br /&gt;
7. Of the ten possible pairings of cards, only one pair, when removed, leaves three cards in ascending order from left to right.&lt;br /&gt;
8. My ace is not the card on the far left."&lt;br /&gt;
&lt;br /&gt;
There was a minute's silence. One of the other logicians said, "I give up! There's no way to figure that out!"&lt;br /&gt;
The other agreed. But I didn't. I had just figured out which suit he had two of.&lt;br /&gt;
&lt;br /&gt;
Which suit is it?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The two cards on the ends and the card in the middle border a combined number of two suits. So at least one pair of them should be listed as bordering a card of the same suit in clues 1-5. Of the five, only the ace and the queen meet this criterion, so they must be two cards apart. One of them must be in the center, but it can't be the ace (the two cards on the ends would only border hearts - and one of them has to be bordering something else from clues 1-4), so it must be the queen. The ace is not on the left end from clue 8, so it must be on the right end, and the card next to it must be a heart. So far we have this(X represents unknown):&lt;br /&gt;
X X Q X A&lt;br /&gt;
X X X H X&lt;br /&gt;
At least one of the two cards to the left of the queen is lower than the queen (two of the remaining cards are lower, and only one can be right of the queen), so the triplet that is in ascending order is the queen, the ace, and the single card to the left of the queen that is lower than the queen. That means the king is left of the queen, and is also left of both the jack and the ten (otherwise, jack king ace or ten king ace would be a second triplet), so it must be on the far left. The jack must be left of the ten (or else ten jack ace would be a second triplet), so it must be second from the left, and the ten must be second from the right. The only card next to the king is the jack of diamonds (it's a diamond from clue 1). So far we have(T is ten):&lt;br /&gt;
K J Q T A&lt;br /&gt;
X D X H X&lt;br /&gt;
Now we seem to be stuck. We don't have any more clues that can be used. So how did I figure it out?&lt;br /&gt;
I held a face card (I said so myself in the intro). I must have known it cannot be that card and deduced the correct answer from there.&lt;br /&gt;
But which card did I have? We already know the suit of the jack, so my holding a jack would not help. Could I have held a queen? No, because I know the queen to either be a spade or club (clue 6), so one of the cards next to the queen would have its clue satisfied (see clues 3 and 4), and I could not determine the suit of the card on the other side of it.&lt;br /&gt;
Therefore, I must have held a king. But which king? I know the king is not a diamond (clue 6) or a heart (clue 3). If I held the king of clubs, then the king next to the jack would have satisfied the jack's clue, and I could not have determine the suit of either card next to the ten.&lt;br /&gt;
Therefore, I held the king of spades. The king of clubs must have been on the far left (only suit available), so the only card next to the jack that could be a spade is the queen, so the only card next to the ten that could be a club is the ace. In summary:&lt;br /&gt;
K J Q T A&lt;br /&gt;
C D S H C&lt;br /&gt;
Therefore there are two CLUBS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-7045832685438446735?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/KpEYHS0grg0/five-cards.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/five-cards.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-772035835577727082</guid><pubDate>Tue, 27 Apr 2010 20:43:00 +0000</pubDate><atom:updated>2010-04-27T13:43:50.355-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Logic Puzzle</category><title>Spirit Search</title><description>&lt;b&gt;Puzzle:&lt;/b&gt;&lt;br /&gt;
You are an expert on paranormal activity and have been hired to locate a spirit haunting an old resort hotel. Strong signs indicate that the spirit lies behind one of four doors. The inscriptions on each door read as follows:&lt;br /&gt;
&lt;br /&gt;
Door A: It's behind B or C&lt;br /&gt;
Door B: It's behind A or D&lt;br /&gt;
Door C: It's in here&lt;br /&gt;
Door D: It's not in here&lt;br /&gt;
&lt;br /&gt;
Your psychic powers have told you three of the inscriptions are false, and one is true. Behind which door will you find the spirit?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The spirit lies behind Door D.&lt;br /&gt;
&lt;br /&gt;
If the spirit is behind Door A, then both B and D are true.&lt;br /&gt;
&lt;br /&gt;
If the spirit is behind Door B, then both A and D are true.&lt;br /&gt;
&lt;br /&gt;
If the spirit is behind Door C, then A, C, and D are all true.&lt;br /&gt;
&lt;br /&gt;
If the spirit is behind Door D, then the statements on all the doors are false, except for that on Door B. This matches the rules, and therefore, the resort hotel spirit lurks behind Door D.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-772035835577727082?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/zgh_Z6MnZwU/spirit-search.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/spirit-search.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-888129181738694109</guid><pubDate>Wed, 21 Apr 2010 19:31:00 +0000</pubDate><atom:updated>2010-04-21T12:31:35.372-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Probability puzzles</category><title>Marbles, Coin and Die</title><description>&lt;b&gt;Puzzle&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If I have:&lt;br /&gt;
a normal coin with a heads and tails;&lt;br /&gt;
a 6-sided die;&lt;br /&gt;
and a bag containing 4 blue and 2 red marbles,&lt;br /&gt;
what is the probability of me flipping a heads, rolling a 4, and picking out a red marble?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Probability of flipping a heads: 1/2&lt;br /&gt;
Probability of rolling a 4: 1/6&lt;br /&gt;
Probability of selecting a red marble: 2/6&lt;br /&gt;
&lt;br /&gt;
Then multiply the results, so:&lt;br /&gt;
1/2 x 1/6 x 2/6= 1/36 or 0.027 to 3 decimal places&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-888129181738694109?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/9ajnbyx3tYg/marbles-coin-and-die.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/marbles-coin-and-die.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-8125993393019427590</guid><pubDate>Mon, 19 Apr 2010 20:08:00 +0000</pubDate><atom:updated>2010-04-27T13:39:58.279-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Probability puzzles</category><title>The Gardner Sisters</title><description>&lt;b&gt;Puzzle:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Gretchen and Henry invited the four Gardner sisters over to their house for an afternoon tea. Henry went to the cabinet to take out some plates (they have both blue and green plates in the cabinet), and the first two plates he took out were blue. "What are the odds?" asked Martina Gardner, the youngest.&lt;br /&gt;
&lt;br /&gt;
Henry thought for a moment, and then replied, "Knowing how many plates of each color I have, the probability that I would pull out two blue ones is exactly 1/2!" Martina then asked if Henry could feed two dozen people if he used all of his plates. "Not quite," he replied.&lt;br /&gt;
&lt;br /&gt;
She then told him how many plates he had. What number did she say?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Henry has 21 plates, and 15 of them are blue.&lt;br /&gt;
&lt;br /&gt;
This makes the probability of drawing two plates (15/21) * (14/20), which equals 1/2.&lt;br /&gt;
&lt;br /&gt;
Martina had to ask if he could feed two dozen people because there are other (larger) numbers that work. For example, if he had 85 blue plates out of 120 total, the probability that he would pull out two blue ones would have been (85/120) * (84/119), or 1/2. Other numbers work, as well, but all are greater than 120.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-8125993393019427590?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/NJAmAKPc7gs/gardner-sisters.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>2</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/gardner-sisters.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3256028857260256064</guid><pubDate>Sun, 18 Apr 2010 19:30:00 +0000</pubDate><atom:updated>2010-04-18T12:30:35.670-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Probability puzzles</category><title>Another Game of Dice</title><description>&lt;b&gt;Puzzle&lt;/b&gt;&lt;br /&gt;
Your friend offers to play a game of dice with you. He explains the game to you.&lt;br /&gt;
&lt;br /&gt;
"We each get one die, the highest die wins. If we tie, I win, but since you always lose when you roll a one, if you roll a one you can roll again. If you get a one the second time you have to keep it."&lt;br /&gt;
&lt;br /&gt;
What is each person's probability of winning?&lt;br /&gt;
&lt;br /&gt;
What are the probabilities of winning if you can keep rolling until you get something besides a one?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
In the first game the probabilities of winning are 37/72 for your friend and 35/72 for you. In the second game each player has a 50% probability of winning.&lt;br /&gt;
&lt;br /&gt;
There are 36 combinations (6 x 6) for your die and your friend's die on the first roll. In the first game if you don't roll a one on the first roll then that roll is equally likely to be a 2, 3, 4, 5 or 6, which can beat 1, 2, 3, 4, 5 different numbers, respectively. That gives a&lt;br /&gt;
&lt;br /&gt;
(1+2+3+4+5)/36 = 15/36&lt;br /&gt;
&lt;br /&gt;
probability of winning on the first roll. There is a 1/6 chance of rolling a one, in which case you have a 15/36 probability of winning on the second roll, which gives a&lt;br /&gt;
&lt;br /&gt;
1/6 * 15/36 = 15/216 = 5/72&lt;br /&gt;
&lt;br /&gt;
probability of winning on the second roll for a total probability of winning of&lt;br /&gt;
&lt;br /&gt;
15/36 + 5/72 = 30/72 + 5/72 = 35/72 = .486111...&lt;br /&gt;
&lt;br /&gt;
In the second game we never keep a one, so there are only 30 combinations (5 x 6) for the final roll. As shown above, there are 15 ways to win, which gives a probability of&lt;br /&gt;
&lt;br /&gt;
15/30 = 1/2&lt;br /&gt;
&lt;br /&gt;
of winning the second game.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3256028857260256064?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/ZYkoHINGibQ/another-game-of-dice.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>3</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/another-game-of-dice.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-5048176839306497183</guid><pubDate>Sun, 18 Apr 2010 19:28:00 +0000</pubDate><atom:updated>2010-04-18T12:28:02.733-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Probability puzzles</category><title>Duplicate Lottery Picks</title><description>&lt;b&gt;Puzzle&lt;/b&gt;&lt;br /&gt;
In the Massachusetts Megabucks lottery, six different numbers from 1 to 42 (inclusive) are selected. When you buy a ticket, you can ask for a "quick pick" in which the computer chooses the numbers for you, and you can purchase up to five games on a single ticket. We'll assume that the computer's random number generator is fair, giving each possible combination an equal probability of being chosen.&lt;br /&gt;
&lt;br /&gt;
1. If I "quick pick" for two games, what are the chances that the two games have the same combination of numbers?&lt;br /&gt;
&lt;br /&gt;
2. If I "quick pick" for five games (one five-game ticket), what are the chances that there are two games on that ticket with the same combination?&lt;br /&gt;
&lt;br /&gt;
3 (The toughie). How many five-game quick-pick tickets would I have to buy in order to have a greater than 50% chance of having at least one ticket with two games on it that match exactly?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
1. 1/5245786. The first game on the ticket will be some combination. Then you just calculate the chances that the second game on the ticket will match it. This number of combinations is (42 choose 6) or&lt;br /&gt;
&lt;br /&gt;
42! / 6! (42-6)! = 5245786&lt;br /&gt;
&lt;br /&gt;
So the chances that they match is 1 over this number.&lt;br /&gt;
&lt;br /&gt;
2. For this sort of problem, where you are asking what are the chances of something happening at least once out of several opportunities to happen, you first calculate the opposite -- the chances of it NOT happening in all the tries -- and subtract from 1. So, what are the chances that the 5 games on the ticket are all different?&lt;br /&gt;
&lt;br /&gt;
We know that there are 5245786 possibilities for any one game. In the first game, we choose one of them. The second game now has a 5245785 / 5245786 chance of being different from that first one. Now the third game has a 5245784 / 5245786 chance of being different from either of the first two; and the fourth has a 5245783 / 5245786 chance of being a new selection. When you have the chances of individual events occurring, and you want to know the chance of them ALL occurring, you just multiply. We multiply the chances of all these events occurring (that is, each choice being different) to get:&lt;br /&gt;
&lt;br /&gt;
(5245785 * 5245784 * 5245783 * 5245782) / 5245786 ^ 4&lt;br /&gt;
&lt;br /&gt;
This equals&lt;br /&gt;
&lt;br /&gt;
0.99999809370925005714289758986902&lt;br /&gt;
&lt;br /&gt;
Remember, this is the chance of all of the games on a five-game ticket being different. So the chance of at least two of them being the same is 1 minus this number, or&lt;br /&gt;
&lt;br /&gt;
0.0000019062907499428571024101309848736&lt;br /&gt;
&lt;br /&gt;
which is a really tiny number.&lt;br /&gt;
&lt;br /&gt;
3. We take a similar approach with this calculation that we took before: figure out the chance of it not happening for N tickets, and subtract that value from 1. Then we set that chance to 0.5 and solve for N.&lt;br /&gt;
&lt;br /&gt;
We already know the chance of it happening in one try: the tiny number above, which, for now, we'll call p. So the chance of it NOT happening in one try is (1-p). The chance of it NOT happening in n tries is (1-p)^n, so the chance of it happening at least once in n tries is [1 - (1-p)^n]. We set this formula to 0.5 and solve for n.&lt;br /&gt;
&lt;br /&gt;
Of course, solving for n is tricky, unless you are comfortable with logarithms. I start with the equation&lt;br /&gt;
&lt;br /&gt;
0.5 = [1 - (1-p)^n]&lt;br /&gt;
&lt;br /&gt;
Simplify&lt;br /&gt;
0.5 = (1-p)^n&lt;br /&gt;
&lt;br /&gt;
Take natural logarithm of both sides&lt;br /&gt;
ln(0.5) = ln( (1-p)^n)&lt;br /&gt;
&lt;br /&gt;
Use logarithm magic&lt;br /&gt;
ln(0.5) = n * ln(1-p)&lt;br /&gt;
&lt;br /&gt;
Divide both sides by ln(1-p)&lt;br /&gt;
n = ln(0.5) / ln(1-p)&lt;br /&gt;
&lt;br /&gt;
Plug in the number (which we already know) for p and let the calculator do what it's good at&lt;br /&gt;
n = 363610.07359999192796640483226154&lt;br /&gt;
&lt;br /&gt;
which is how many tickets we would have to buy to have a 50% chance of seeing one ticket with a match. Since we can't buy fractional tickets, we round up, to make sure we have a greater than 50% chance.&lt;br /&gt;
&lt;br /&gt;
So we need to buy 363611 five-game tickets to have a better than 50% chance of having at least one ticket on which two games match exactly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-5048176839306497183?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/_ulmVqTHxlU/duplicate-lottery-picks.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/duplicate-lottery-picks.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-591821721054079624</guid><pubDate>Sun, 18 Apr 2010 19:26:00 +0000</pubDate><atom:updated>2010-04-18T12:26:06.792-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Probability puzzles</category><title>St. Petersburg Paradox</title><description>&lt;b&gt;Puzzle:&lt;/b&gt; &lt;br /&gt;
You are offered a game to play with a single fair coin. It costs 20 dollars to play this game, but you can win much more than that. The way it works is that you continue to flip the coin until you get tails. For every heads you get before that, your payoff doubles. For example, if you get:&lt;br /&gt;
Heads&lt;br /&gt;
Heads&lt;br /&gt;
Tails, then you would earn 4 dollars.&lt;br /&gt;
In other words, you get: 2^heads dollars after you play. The question is: would you come out with more or less money after you played this game an INFINITE number of times? Remember, each game costs 20 dollars!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
Neither!&lt;br /&gt;
You would come out with an INFINITE amount of money! Here's why:&lt;br /&gt;
&lt;br /&gt;
The way to calculate an expected value of a game=(the probability of event1)*(the payoff from event1)+(the probability of event2)*(the payoff from event2)...&lt;br /&gt;
&lt;br /&gt;
Let's say:&lt;br /&gt;
event1=Tails&lt;br /&gt;
event2=Heads,Tails&lt;br /&gt;
event3=Heads,Heads,Tails, and so on.&lt;br /&gt;
&lt;br /&gt;
The probability of these events are:&lt;br /&gt;
event1=1/2&lt;br /&gt;
event2=1/2*1/2=1/4&lt;br /&gt;
event3=1/2*1/2*1/2=1/8, and so on.&lt;br /&gt;
&lt;br /&gt;
The payoff of these events are:&lt;br /&gt;
event1=1&lt;br /&gt;
event2=2&lt;br /&gt;
event3=4&lt;br /&gt;
event4=8, and so on.&lt;br /&gt;
&lt;br /&gt;
Plugging this into the expected value formula, we get:&lt;br /&gt;
EV=(1/2*1)+(1/4*2)+(1/8*4)+(1/16*8)...&lt;br /&gt;
&lt;br /&gt;
This simplifies to:&lt;br /&gt;
EV=1/2+1/2+1/2+1/2...&lt;br /&gt;
Any number added an infinite number of times will sum to infinity, so your expected value of this game is infinity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-591821721054079624?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/hPelf0Rjbfk/st-petersburg-paradox.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/st-petersburg-paradox.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-5569264377076343866</guid><pubDate>Thu, 15 Apr 2010 22:38:00 +0000</pubDate><atom:updated>2010-04-15T15:38:49.969-07:00</atom:updated><title>100 Prisoners in Solitary Cells</title><description>100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say “Every prisoner has been in the special room at least once”. If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-5569264377076343866?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/wH2d7jL7vdQ/100-prisoners-in-solitary-cells.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>2</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/100-prisoners-in-solitary-cells.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-6099302622278632386</guid><pubDate>Thu, 15 Apr 2010 22:38:00 +0000</pubDate><atom:updated>2010-04-15T15:38:28.297-07:00</atom:updated><title>Trailing Zeros in 100 Factorial</title><description>How many zeros are there in 100! (100 factorial)?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-6099302622278632386?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/f3npJa2U4OU/trailing-zeros-in-100-factorial.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/trailing-zeros-in-100-factorial.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3474649126173484419</guid><pubDate>Thu, 15 Apr 2010 22:37:00 +0000</pubDate><atom:updated>2010-04-15T15:38:03.321-07:00</atom:updated><title>Apples and Oranges?</title><description>You have 3 baskets, one with apples, one with oranges and one with both apples and oranges mixed. Each basket is closed and is labeled with ‘Apples’, ‘Oranges’ and ‘Apples and Oranges’. However, each of these labels is always placed incorrectly. How would you pick only one fruit from a basket to place the labels correctly on all the baskets?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3474649126173484419?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/xUQgiklZ0BQ/apples-and-oranges.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/apples-and-oranges.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-3934454162067648838</guid><pubDate>Thu, 15 Apr 2010 22:37:00 +0000</pubDate><atom:updated>2010-04-15T15:37:30.798-07:00</atom:updated><title>5 Pirates Fight for 100 Gold Coins</title><description>Five pirates discover a chest containing 100 gold coins. They decide to sit down and devise a distribution strategy. The pirates are ranked based on their experience (Pirate 1 to Pirate 5, where Pirate 5 is the most experienced). The most experienced pirate gets to propose a plan and then all the pirates vote on it. If at least half of the pirates agree on the plan, the gold is split according to the proposal. If not, the most experienced pirate is thrown off the ship and this process continues with the remaining pirates until a proposal is accepted. The first priority of the pirates is to stay alive and second to maximize the gold they get. Pirate 5 devises a plan which he knows will be accepted for sure and will maximize his gold. What is his plan?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-3934454162067648838?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/uUl8dLfyjIE/5-pirates-fight-for-100-gold-coins.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/5-pirates-fight-for-100-gold-coins.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-6408178090342692379</guid><pubDate>Thu, 15 Apr 2010 22:36:00 +0000</pubDate><atom:updated>2010-04-15T15:36:53.259-07:00</atom:updated><title>How Strong is an Egg?</title><description>You have two identical eggs. Standing in front of a 100 floor building, you wonder what is the maximum number of floors from which the egg can be dropped without breaking it. What is the minimum number of tries needed to find out the solution?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-6408178090342692379?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/oyAlVqPrcDk/how-strong-is-egg.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>3</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/how-strong-is-egg.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-1244655064744043923</guid><pubDate>Thu, 15 Apr 2010 22:36:00 +0000</pubDate><atom:updated>2010-04-15T15:36:29.547-07:00</atom:updated><title>What’s Your Eye Color?</title><description>On a certain island there are people with assorted eye colors. There are 100 people with blue eyes and 100 people with brown eyes. Since there are no mirrors on this island, no person knows the color of their own eyes. The people on the island are not allowed to talk or communicate with each other in any way. They are also NOT aware of the number of blue or brown eyed people on the island. For all they know, they could have red eyes too. But they are allowed to observe other people and keep count of the number of people with a certain eye color. There is a rule that the people on the island have to follow – any person who is sure of their eye color has to leave the island immediately.&lt;br /&gt;&lt;br /&gt;One day, an outsider comes to the island and announces to the people that he sees someone with blue eyes. What do you think happens?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-1244655064744043923?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/WD4iKehKaN0/whats-your-eye-color.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/whats-your-eye-color.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-5862671534326669892</guid><pubDate>Thu, 15 Apr 2010 22:35:00 +0000</pubDate><atom:updated>2010-04-15T15:35:56.909-07:00</atom:updated><title>Bulb Or No Bulb?</title><description>There are 100 bulbs arranged in a row. Each bulb has its own switch and is currently turned off.  In the first round, you turn every switch on. In the second round, you flip the switch of every second bulb (i.e. bulb 2, 4, 6, 8 and so on). In the third round, you flip the switch of every third bulb and so on. What is the state of bulb 9 after 100 rounds? Also, how many bulbs are on after 100 rounds?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-5862671534326669892?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/MC9Gh2K7zbI/bulb-or-no-bulb.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/bulb-or-no-bulb.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-1922925422126119290</guid><pubDate>Thu, 15 Apr 2010 22:35:00 +0000</pubDate><atom:updated>2010-04-15T15:35:35.336-07:00</atom:updated><title>6 Pirates Fight for 1 Gold Coin</title><description>Six pirates discover a chest containing 1 gold coin. They decide to sit down and devise a distribution strategy. The pirates are ranked based on their experience (Pirate 1 to Pirate 6, where Pirate 6 is the most experienced). The most experienced pirate gets to propose a plan and then all the pirates vote on it. If at least half of the pirates agree on the plan, the gold is split according to the proposal. If not, the most experienced pirate is thrown off the ship and this process continues with the remaining pirates until a proposal is accepted. The first priority of the pirates is to stay alive and second to maximize the gold they get. Pirate 6 devises a plan which he knows will keep him alive. What is his plan?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-1922925422126119290?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/h4Zj568XhEk/6-pirates-fight-for-1-gold-coin.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/6-pirates-fight-for-1-gold-coin.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-6651137236695489723</guid><pubDate>Thu, 15 Apr 2010 22:34:00 +0000</pubDate><atom:updated>2010-04-15T15:35:10.437-07:00</atom:updated><title>Chess Squares</title><description>ow many squares are on a chess board?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-6651137236695489723?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/qFUo-G0hIog/chess-squares.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/chess-squares.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-2876168581502102541</guid><pubDate>Thu, 15 Apr 2010 22:34:00 +0000</pubDate><atom:updated>2010-04-15T15:34:34.695-07:00</atom:updated><title>9 Minutes</title><description>You are given two hourglasses. One measures 4 minutes and one measures 7 minutes. How would you measure exactly 9 minutes?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-2876168581502102541?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/h_MiKbtMYh0/9-minutes.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/9-minutes.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-5656080973751427774</guid><pubDate>Thu, 15 Apr 2010 22:33:00 +0000</pubDate><atom:updated>2010-04-15T15:34:10.222-07:00</atom:updated><title>Three Switches</title><description>You are standing outside a room next to three switches, all of which are off. Each switch operates a different light bulb in the room. The room door is closed, so you cannot see which switch operates which bulb. You are only allowed to go into the room once. Determine which switch operates which bulb.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-5656080973751427774?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/z0-VNP_O4NE/three-switches.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>0</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/three-switches.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6309069204584200907.post-4104212866373740712</guid><pubDate>Thu, 15 Apr 2010 22:33:00 +0000</pubDate><atom:updated>2010-04-15T15:33:41.663-07:00</atom:updated><title>Farmer’s Dilemma</title><description>A farmer bought a goat, a wolf and a cabbage from the market. On his way home, he has to cross a river. He has a small boat which only allows him to take one thing with him at a time. The farmer cannot leave the cabbage and the goat together (the goat would eat the cabbage) nor can he leave the goat and the wolf together (the wolf would eat the goat). How does he cross the river without losing any of the things he bought?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6309069204584200907-4104212866373740712?l=puzzles-interview.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/PuzzlesFromRealInterviews/~3/s_H4KxPkP7w/farmers-dilemma.html</link><author>noreply@blogger.com (Administrator)</author><thr:total>1</thr:total><feedburner:origLink>http://puzzles-interview.blogspot.com/2010/04/farmers-dilemma.html</feedburner:origLink></item></channel></rss>

