| TOWER OF HANOI PROBLEM | ||||||||
| Tower Of Hanoi | ||||||||
| Tower of Hanoi is a historical problem, which can be easily expressed using recursion. There are N disks of decreasing size stacked on one needle, and two other empty needles. It is required to stack all the disks onto a second needle in the decreasing order of size. The third needle can be used as a temporary storage. The movement of the disks must confirm to the following rules, Question : write a c program to implement tower of Hanoi using stack ? |
||||||||
| Solution | ||||||||
| Prev | ||||||||