Smatchcube's website 🌍


Exercise 2.42

I chose to represent board positions with a list of integers designing the row of each queen from right to left (queens are added to the left of the list).\ Here is an example of how I represented the board from Figure 2.8:\ {: .center-image .medium-margin} Representation of the above board position: (6 2 7 1 4 8 5 3)