public/subjects/eightqueens
xpetit 46f4ddc49e
Simplify prompt, execution of Go programs, fix typos
2021-04-28 11:47:34 +02:00
..
README.md Simplify prompt, execution of Go programs, fix typos 2021-04-28 11:47:34 +02:00

README.md

eightqueens

Instructions

Write a function that prints the solutions to the eight queens puzzle.

Recursivity must be used to solve this problem.

It should print something like this :

$ go run .
15863724
16837425
17468253
...

Each solution will be on a single line. The index of the placement of a queen starts at 1. It reads from left to right and each digit is the position for each column. The solutions will be printed in ascending order.

Expected function

package piscine

func EightQueens() {

}