标签归档:leetcode

RSS feed of leetcode

[LeetCode]Flatten Nested List Iterator

题目描述:

LeetCode 341. 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.

Example 1:
Given ...

继续阅读