How to program the 8 queens with a recursive function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to program the 8 queens with a recursive function?

6th Mar 2018, 8:49 PM
Fatemeh. R
Fatemeh. R - avatar
4 Answers
+ 3
Sorry could you explain 8 minister? Is it a riddle? Is it similar to the 8 queens chess riddle?
9th Mar 2018, 10:14 PM
K Locher
K Locher - avatar
+ 2
sorry.I mean 8queens
10th Mar 2018, 9:35 AM
Fatemeh. R
Fatemeh. R - avatar
+ 1
I want program very simple
10th Mar 2018, 6:49 PM
Fatemeh. R
Fatemeh. R - avatar
0
Ok! Thx! Interesting. There are already solutions available on internet. BUT your question inspired me to think about a solution in metaprogramming, means c++ templates etc. Because it is a static problem metaprogram should be able to find a solution (no runtime only compile time solution). Of course not a walk in park.
10th Mar 2018, 11:22 AM
K Locher
K Locher - avatar