Is there a problem with how you have coded the algorithm?

How are you trying to debug the code to find the problem?
I use lots of calls to println() statements to show the values of variables as...