Code
The highlighted line runs next. The pill shows the live values in the running call.
Recursion tree
Hover a permutation in res to find its call
not called yet
running now
paused, waiting on a child call
full permutation (saved)
finished
bold green numbers = fixed positions
Call stack
Top frame runs; the rest are paused
Variables
nums one array, rearranged in place by swaps
res