The key to performance is elegance, not battalions of special cases. Jon Bentley and Doug McIlroy
Tower Of Hanoi is a mathematical game which consists three rods. The rods has a number of disk with the different size which can slide onto any rod. The objective of the puzzle is to move the entire stack to another rod. It should follow
Write a program to implement Tower Of Hanoi which move the disks from source to destination using the stack.
Enter number of discs: 3 A -> C A -> B C -> B A -> C B -> A B -> C A -> C