<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET Debugging : Logic Puzzles</title><link>http://blogs.msdn.com/tom/archive/tags/Logic+Puzzles/default.aspx</link><description>Tags: Logic Puzzles</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Logic Puzzle: Jelly Beans</title><link>http://blogs.msdn.com/tom/archive/2008/08/27/logic-puzzle-jelly-beans.aspx</link><pubDate>Wed, 27 Aug 2008 13:00:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8893903</guid><dc:creator>Tom</dc:creator><slash:comments>14</slash:comments><comments>http://blogs.msdn.com/tom/comments/8893903.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=8893903</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=8893903</wfw:comment><description>&lt;p&gt;Hope this one is a little harder then the last one.&amp;#160; Please keep in mind that all comments will remain hidden until I post the answer to allow others to try to solve it.&lt;/p&gt;  &lt;h3&gt;Puzzle&lt;/h3&gt;  &lt;p&gt;You work at a factory that creates bags of jelly beans.&amp;#160; You make three types of bags, one that is all green, one that is all red, and one that is a mix of red and green.&amp;#160; Someone walks into your office this morning and tells you that the bags are labeled wrong.&amp;#160; Now you cannot see through the bags to see the contents, your fellow employee asks you to figure out which are which.&amp;#160; But there is a catch.&amp;#160; Opening a bag costs money and so they want to label them all correctly with opening the fewest amount of bags.&amp;#160; Also, touching or pulling out a jelly bean also costs money as it is contaminated.&amp;#160;&amp;#160; So they want you to do it looking at the fewest amount of jelly beans as well.&amp;#160; (No, you can't just peek inside a bag)&lt;/p&gt;  &lt;p&gt;How many bags do you need to open and how many jelly beans do you need to look at?&amp;#160; What would you do?&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8893903" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/tom/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://blogs.msdn.com/tom/archive/tags/Logic+Puzzles/default.aspx">Logic Puzzles</category></item><item><title>Logic Puzzle: What comes next?</title><link>http://blogs.msdn.com/tom/archive/2008/08/18/logic-puzzle-what-comes-next.aspx</link><pubDate>Mon, 18 Aug 2008 13:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8843794</guid><dc:creator>Tom</dc:creator><slash:comments>43</slash:comments><comments>http://blogs.msdn.com/tom/comments/8843794.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=8843794</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=8843794</wfw:comment><description>&lt;p&gt;&lt;b&gt;What row of numbers comes next?&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;1     &lt;br /&gt;11      &lt;br /&gt;21      &lt;br /&gt;1211      &lt;br /&gt;111221      &lt;br /&gt;312211      &lt;br /&gt;13112221&lt;/b&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8843794" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/tom/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://blogs.msdn.com/tom/archive/tags/Trivia+of+the+Day/default.aspx">Trivia of the Day</category><category domain="http://blogs.msdn.com/tom/archive/tags/Logic+Puzzles/default.aspx">Logic Puzzles</category></item><item><title>Logic puzzle: Russian Roulette</title><link>http://blogs.msdn.com/tom/archive/2008/08/11/logic-puzzle-russian-roulette.aspx</link><pubDate>Mon, 11 Aug 2008 13:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8843785</guid><dc:creator>Tom</dc:creator><slash:comments>65</slash:comments><comments>http://blogs.msdn.com/tom/comments/8843785.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=8843785</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=8843785</wfw:comment><description>&lt;p&gt;Here is another logic puzzle, see what you think:&lt;/p&gt;  &lt;p&gt;You are tied to your chair and can't get up. Here's a gun. Here's the barrel of the gun, six chambers, all empty. Now watch me as I put two bullets in the gun. See how I put them in two adjacent chambers? I close the barrel and spin it. I put the gun to your head and pull the trigger. Click. You're still alive. Lucky you! I'm going to pull the trigger one more time. Which would you prefer, that I spin the barrel first, or that I just pull the trigger?&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8843785" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/tom/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://blogs.msdn.com/tom/archive/tags/Trivia+of+the+Day/default.aspx">Trivia of the Day</category><category domain="http://blogs.msdn.com/tom/archive/tags/Logic+Puzzles/default.aspx">Logic Puzzles</category></item><item><title>Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx</link><pubDate>Thu, 31 Jul 2008 13:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8767342</guid><dc:creator>Tom</dc:creator><slash:comments>36</slash:comments><comments>http://blogs.msdn.com/tom/comments/8767342.aspx</comments><wfw:commentRss>http://blogs.msdn.com/tom/commentrss.aspx?PostID=8767342</wfw:commentRss><wfw:comment>http://blogs.msdn.com/tom/rsscomments.aspx?PostID=8767342</wfw:comment><description>&lt;p&gt;I thought it would be fun to try something new here.&amp;#160; So I am going to present a logic puzzle and let people try to answer it.&amp;#160; I will post the solution in the future but I want to give people a chance to try to solve it.&lt;/p&gt;  &lt;p&gt;So here is the first puzzle:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;A baker sells donuts in boxes of 6, 9, and 20. What is the greatest number of donuts that it is impossible to buy?&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8767342" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/tom/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://blogs.msdn.com/tom/archive/tags/Trivia+of+the+Day/default.aspx">Trivia of the Day</category><category domain="http://blogs.msdn.com/tom/archive/tags/Logic+Puzzles/default.aspx">Logic Puzzles</category></item></channel></rss>