Java Reference
In-Depth Information
Figure 1
Debugging a Recursive Method
596
597
H OW T O 13.1: Thinking Recursively
To solve a problem recursively requires a different mindset than to solve it by
programming loops. In fact, it helps if you are, or pretend to be, a bit lazy and like
others to do most of the work for you. If you need to solve a complex problem,
pretend that Ȓsomeone elseȓ will do most of the heavy lifting and solve the
Search WWH ::




Custom Search