What are towers of honai problem?

This question is related to Wipro Interview

Showing Answers 1 - 1 of 1 Answers

sunny

  • Mar 13th, 2007
 

Let call the three pegs Src (Source), Aux (Auxiliary) and Dst (Destination).For a given number N of disks, the problem appears to be solved if we know how to accomplish the following tasks:1.Move the top N-1 disks from Src to Aux (using Dst as an intermediary peg) 2.Move the bottom disk from Src to Dst 3.Move N-1 disks from Aux to Dst (using Src as an intermediary peg)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions