Bits and Pieces
Thursday, September 16, 2010
Fun with recursion in Java
Hanoi.java
contains a routine textbook solution to the familiar Towers of Hanoi problem. Upon compiling it and running it (
java Hanoi > out.txt
), the execution times for the various numbers of discs are printed out as follows
Read more »
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)