Trace recursion stack and analyze space complexity of nested program
Filed under Amazon
The question
Given a short nested recursive program written on paper, draw its recursion stack showing function invocation order, return order, and prove its space complexity.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.