Beta

Generalizing the N-Queens problem

Description
Loading description...
Puzzles
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    -- Anticheat to avoid hard-coded solutions without having to generate random tests ...

    Nope. You'll have to write some random tests.

    Shouldn't the input size be enlarged too?

  • maround95 Avatar

    Very enjoyable kata! One thing to note though, in the description you say that "one can place in 8 different ways 1 King, 1 Rook and 2 Knights on a 4 x 3 chessboard", however it should be "1 King, 1 Rook, 1 Bishop and 2 Knights" because without the bishop, there are 16 distinct ways not 8. I noticed this because your example placement included a bishop.