×

Loading...

I want to write a method with the function of recursion, can anybody tell me how can I do it by useing Java or C++?

I want to write a method with the function of recursion, can anybody tell me how can I do it by useing Java or C++(I prefer Java, but if you can tell both of them is the best), the recursive method is used for 8x8 matrix grid which can put 8 components into the grid with the conditions as they do not attack each other (do not cross each others paths). they move vertically, horizontally and diagonally. The program must provide the components positions of the example solution, if one exists. If more than one solution exists we want to know the number of possible solutions.
Thank you!
Report