ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P90

Description

Some solutions to Problems.P90 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

queens :: Int -> [[Int]] Source #

Solve the extended eight queens problem for arbitrary \(n\).

Represent the positions of the queens as a list of numbers from 1 to \(n\).