This is my homework. And I don't want to ask for solution of any kind. I just want some clue, hint, strategy to start. :-w
P/s : I have solved the n queens problem using stack before, but I...
Type: Posts; User: bruce88
This is my homework. And I don't want to ask for solution of any kind. I just want some clue, hint, strategy to start. :-w
P/s : I have solved the n queens problem using stack before, but I...
ok i fixed it , thanks a lot. i know what you mean now.:cool:
Sorry I don't know what you mean ? :-o
I created a object qq which belongs to the Nqueens class. Then use object qq to activate the method solution ( method solution in the Nqueens class).
...
I need to solve the N queens problem (place n queens on a chess board size nxn so that the queens don't attack each other). Consist of 4 class :
Queen.java : hold the row and column of the queen...
@Norm : thanks, I am trying to add the System.out.println to each section to see what is going on.
Edit: I think I figure out the error. Thanks again Norm, your trick works.:cool:
This is what I got from running those codes:
Please help me, I got stuck on this one from yesterday til now. Long story short : I have to build an java apps for doing polynomial : addition, subtraction, derivative .... The data structure chosen...