2 ms·
One of the first recursive algorithms I learned was the solver for the Tower of Hanoi problem. I was stunned about its simplicity, solving a problem most people
by tcgv 7y ago
One of the first recursive algorithms I learned was the solver for the Tower of Hanoi problem. I was stunned about its simplicity, solving a problem most people couldn't with just a few lines of code:
- https://en.wikipedia.org/wiki/Tower_of_Hanoi#Recursive_solution https://en.wikipedia.org/wiki/Tower_of_Hanoi#Recursive_solut...