Skip to content

Commit

Permalink
Update 0341. 扁平化嵌套列表迭代器.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed Sep 20, 2023
1 parent 325f885 commit bcb1fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/0341. 扁平化嵌套列表迭代器.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NestedInteger 类提供了三个方法:

- `isInteger()`,判断当前存储的对象是否为 int;
- `getInteger()` ,如果当前存储的元素是 int 型的,那么返回当前的结果 int,否则调用会失败;
- `getList()`,如果当前存储的元素是 List<NestedInteger> 型的,那么返回该 List,否则调用会失败。
- `getList()`,如果当前存储的元素是 `List<NestedInteger>` 型的,那么返回该 List,否则调用会失败。

要求:实现一个迭代器将其扁平化,使之能够遍历这个列表中的所有整数。

Expand Down

0 comments on commit bcb1fa2

Please sign in to comment.