Search
⌘K

Leetcode 2649. Nested Array Generator

Given a recursively nested array of integers, implement a generator that lazily yields integers in left-to-right (depth‑first) order without building a flattened copy, handling arbitrary nesting up to the given depth.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.