Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by wagwang

1 day ago

Normal recursion is just a loop and a stack, turns out, if you can optimize recursion without a stack, it just becomes a loop.

1 comment

wagwang

Reply

Mikhail_Edoshin  1 day ago

It is still the same stack, but it reuses the existing stack frame.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities