remaining elements after [ [ 0, [ ] ], [ [ 1, [ ] ], [ ] ] ] is popped at index [ 1, [ ] ] and visited stack is [ ] = [ [ 0, [ ] ], [ ] ]

View as a table | Try proving it

Start from the conclusion and work back up the proof. Click the arrow to show the parents.