Flatten 2D Vector Flashcards

1
Q

Flatten Nested List Iterator

Given a nested list of integers, implement an iterator to flatten it.
Each element is either an integer, or a list – whose elements may also be integers or other lists.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly