Custom code dry run
Paste a short algorithm snippet and inspect the execution timeline, variables, console output, and data-structure snapshots. The tracer is intentionally static and safe: it explains control flow without executing arbitrary user code.
Traces assignments, arrays, if branches, swap calls, and console.log output.
Step 1 of 6
Updated numbers to [5, 2, 8, 1].