Write a code to create tower of hanoi(TOI) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a code to create tower of hanoi(TOI)

There are three towers, T1, T2, T3. The tower T1 has all the disks of different sizes(n say which will be input by user) in it, They are arranged in ascending order (in size) from top to bottom. PROBLEM STATEMENT : Write a code to transfer all the disk from T1 to T3, placed in similar manner as was on T1 Rules: 1)You cannot place larger disk on smaller disk on any tower. 2)You can use T2 while transferring all disk from T1 to T3.

7th Apr 2018, 1:47 PM
Prashant
3 Answers
+ 6
This is already available as an assignment: https://www.sololearn.com/learn/662/?ref=app
7th Apr 2018, 2:32 PM
Paul
Paul - avatar
0
I am challenging. It is not a homework assignment. The challenge is to create the code in all other languages apart from C/C++
7th Apr 2018, 2:18 PM
Prashant
0
okay. sure
7th Apr 2018, 2:29 PM
Prashant