Try all ways to place queens on cells. That's combinations.
For , that's over 4 billion combinations. Most violate the constraint immediately.
Can you prune invalid placements early?
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The trap
Try all ways to place queens on cells. That's combinations.
For , that's over 4 billion combinations. Most violate the constraint immediately.
Can you prune invalid placements early?