InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is NOT a rule of tower of hanoi puzzle?(a) No disk should be placed over a smaller disk(b) Disk can only be moved if it is the uppermost disk of the stack(c) No disk should be placed over a larger disk(d) Only one disk can be moved at a timeThis question was addressed to me in an international level competition.My question is from Recursion topic in chapter Recursion of Data Structures & Algorithms II |
|
Answer» RIGHT ANSWER is (c) No disk should be PLACED over a larger disk For explanation: The RULE is to not put a disk over a SMALLER one. Putting a smaller disk over larger one is allowed. |
|