Recursion Visualizer

Pick a recursive algorithm and click run to list every call with its return value and an indented call tree; algorithm parameters are capped to keep the tree manageable.
Algorithm:         
Call tree:      
Calculation Result Download CSV
No. Depth Call Return Note

Introduction to the tool and how to use it

Online recursion algorithm visualizer: pick factorial, Fibonacci, Tower of Hanoi, binary search, permutations, power set, recursive GCD, or merge sort from the dropdown; it lists every function call, return value, and explanation step by step, and draws an indented call tree by depth. The stats block reports total calls, maximum recursion depth, and repeated subproblems, so you can compare naive recursion against divide-and-conquer at a glance. Each algorithm's parameters carry scale guards; when call nodes exceed the cap, display is truncated automatically.

How to use

  1. Choose a recursion algorithm from the dropdown.
  2. Fill in parameters such as n, number of disks, or search target as needed.
  3. Click the Run button and review the step-by-step calls and the call tree.
  4. Copy the step text.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?