Title: Puzzles
Slug: puzzles
Date: 2007-03-07 15:30:00
Author: Kartones
Lang: en
Tags: Offtopic, Logic
Description: A logic puzzle to test problem-solving skills.

 <p>While having dinner today, I explained how at <a href="http://www.ilitia.com">ilitia</a> we're starting to add to our interviews small puzzles and riddles, not to test if the candidates are very clever but to test how they think and approach a problem, and I thought "If Phobeo <a href="http://geeks.ms/blogs/programancia101/default.aspx">posts about development puzzles/riddles</a>, why not posting one or two general ones?".</p>
<p>So here's the first one, the first I knew when I was learning C (development languages are like girlfriends, you never forget the first one ;)</p>
<p>You have 9 dots:<br><img src="https://images.kartones.net/posts/puzzles/puzzle001_01.gif" title="First Puzzle" style="width: 250px; height: 250px;" alt="First Puzzle" border="1" height="250" width="250"></p>
<p>You have to <b>connect</b> <b>all the nine dots, with 4 consecutive lines</b> (if you're drawing in a paper, you can't lift the pen/pencil between drawing the lines).</p>
<p>Example:</p>
<p><img src="https://images.kartones.net/posts/puzzles/puzzle001_02.gif" title="First puzzle" style="width: 250px; height: 250px;" alt="First puzzle" border="1" height="250" width="250"><br>This is correct (3 more lines remaining)</p>
<p><img src="https://images.kartones.net/posts/puzzles/puzzle001_03.gif" title="First Puzzle" style="width: 250px; height: 250px;" alt="First Puzzle" border="1" height="250" width="250"><br>This is incorrect (no "curved lines" allowed ;)</p>
<p>I'll post a comment with the solution in a few days, and if you like it, I'll continue posting more from time to time :)</p>
<p><b>Update</b>: <a href="https://images.kartones.net/posts/puzzles/puzzle001_solution.gif">Here</a>'s the solution to this first puzzle.</p>
