Leetcode 341. Flatten Nested List Iterator
Given a nested list where elements may be integers or sublists, implement a NestedIterator with next() and hasNext() that returns all integers in depth‑first, left‑to‑right order, flattening the structure lazily as you iterate.
Asked at:
LinkedIn
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early August, 2026
Staff
Mid December, 2025
Junior
Mid April, 2025
Staff
Hello Interview Premium
Your account is free and you can post anonymously if you choose.