Dry Run

LeetCode dry runs

← → stepSpace play or pause

Watch the solution run, one line at a time

Pick a problem. Each line of the solution runs beside a picture that changes with it, over hand-picked edge cases or your own input. .


    

Variables at this step

Line 1