update 方法二 0102.二叉树的层序遍历.md 515题java format
This commit is contained in:
parent
0498cf3935
commit
8aafc86193
|
|
@ -1070,8 +1070,10 @@ class Solution {
|
|||
return retVal;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
方法二:用一个max变量来保存最大值
|
||||
```java
|
||||
//方法二:用一个max变量来保存最大值
|
||||
class Solution {
|
||||
public List<Integer> largestValues(TreeNode root) {
|
||||
Queue<TreeNode> queue = new LinkedList<TreeNode>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue