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

Comment by wagwang

16 hours 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  10 hours 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