+ 1
Eight Queens
How to write a C++ program in ten lines to solve it?
5 Respostas
0
Hi Oscar, can you add more details about your challenge?
0
Hi, Vijay. I thought you had known about it. So sorry, here is the reference:
https://en.m.wikipedia.org/wiki/Eight_queens_puzzle
0
hi Oscar, I tried c++ code but not possible in 10 lines.
0
Hi, Vijay. You can try to use conditional operations. May my suggestions be useful to you.
e.g. x=a:b?a>b it can save a lot