Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid April, 2025
Staff
Early April, 2025
Staff
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.