Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bcb1fa2

Browse files
committed
Update 0341. 扁平化嵌套列表迭代器.md
1 parent 325f885 commit bcb1fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Solutions/0341. 扁平化嵌套列表迭代器.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NestedInteger 类提供了三个方法:
1111

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

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /