N-queens Puzzle
<p>The <b >eight queens puzzle</b> is the problem of placing eight <a href="http://en.wikipedia.org/wiki/Chess" title="Chess" >chess</a> <a href="http://en.wikipedia.org/wiki/Queen_(chess)" title="Queen (chess)" >queens</a> on an 8×8 chessboard so that no two queens attack each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general <b ><i>n</i>-queens problem</b> of placing <i >n</i> queens on an <i >n</i>×<i >n</i> chessboard, where solutions exist for all natural numbers <i >n</i> with the exception of 2 and 3.<sup id="cite_ref-0" class="reference" ><a href="http://en.wikipedia.org/wiki/Eight_queens_puzzle#cite_note-0" >[1]</a></sup>
<sup id="cite_ref-0" class="reference" > </sup>
<img src="/448e313a-34a7-5e06-8833-c16c52b2babd.png"/></p>