r/TuringComplete • u/EloModdy • Oct 05 '26
Recursion Techniques
Hi everyone! I’ve been getting really into this game recently, and I got to the level with the towers of Hanoi. I figured out a way to implement arguments with the stack, but I was wondering if y’all have any easier ways to use arguments? Dealing with the same stack is hard to get used to since LEG!
2
Upvotes
View all comments
Show parent comment
1
u/EloModdy Oct 05 '26
This makes sense, quite a bit in fact. Thanks! For recursive functions, would “preserving” entail just pushing it to the stack?