+ 7
[Challenge] SAFE THE QUEEN
Given a chess board and eight Queens: Create a program which put all Queens in a safe place and return a list of posible solutions. Challenge: Ask the user the column of the 1st Queen and the nunber of solutions to produce. Do not print during the evaluation. Create a function returning a collection of solutions. Note: A Queen may move in any direcction, back, forward, left, right or diagonal; and any number of squares.
6 Réponses
+ 4
Java implementation
https://code.sololearn.com/ccVuzzRd1bDE/?ref=app
+ 4
Please post this as a challenge, a code, or on your personal timeline bro. Q&A is not the place for coding challenges. :) Cheers.
+ 1
VcC the problem has several solutions. your code provides only one
0
Works up to n=12 on sololearn https://code.sololearn.com/cSBMWk0ujKe4/?ref=app
0
c++ implementation
https://code.sololearn.com/cC2E8uZQ7C7p/?ref=app
0
recursion