+ 2
How to solve tower of hanoi in python???
it is must needed.
1 Antwort
+ 2
You don't have to do this, but as a suggestion:
I think it would be really helpful if you personally broke the problem down into steps (let's say, with three discs) and then explained the algorithm that someone must implement. Then it's just learning what control structures in Python get you there.
If you're not sure how to approach the rhythm of the problem, this video may help:
https://youtu.be/2SUvWfNJSsM
Binary, Hanoi and Sierpinski, part 1 [13:58] - 3Blue1Brown
"Today, I want to share with you a neat way to solve the towers of Hanoi Puzzle..."
A key phrase here is "...now you have a smaller version of the same problem...", because it shows how the smaller problems are exactly similar to the bigger one.
If you can't watch it for some reason, I hope it will help someone (who can watch it) help you :)