You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#It is possible only because of the recursive function
#It contains three rods and n number of disca
#The rules of tower of hanoi puzzles are 1.Only one disc is allowed to move at a time. 2.Only the top disc of the rod can be moved from one rod to another 3.Only the smaller disc can be placed above the larger one
#The number of moves is calculated using the formula 2^n-1