Build an iterator that walks a list of integers and nested lists in order — then do it without a stack.
Build an iterator that walks a list of integers and nested lists in order — then do it without a stack.
The discussion opens with the full question.