Class NQueens


  • public final class NQueens
    extends Object
    This example program solves a NQueens problem of given size and prints a possible solution.

    For example, the Queen can be placed in these ways for a field size of 4:

       .Q..
       ...Q
       Q...
       ..Q.