Movatterモバイル変換


[0]ホーム

URL:


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

Commit5d2d00b

Browse files
refactor 1302
1 parent541ddc7 commit5d2d00b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

‎src/main/java/com/fishercoder/solutions/_1302.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,6 @@
55
importjava.util.LinkedList;
66
importjava.util.Queue;
77

8-
/**
9-
* 1302. Deepest Leaves Sum
10-
*
11-
* Given a binary tree, return the sum of values of its deepest leaves.
12-
*
13-
* Example 1:
14-
* 1
15-
* / \
16-
* 2 3
17-
* / \ \
18-
* 4 5 6
19-
* / \
20-
* 7 8
21-
*
22-
* Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]
23-
* Output: 15
24-
*
25-
* Constraints:
26-
* The number of nodes in the tree is between 1 and 10^4.
27-
* The value of nodes is between 1 and 100.
28-
* */
298
publicclass_1302 {
309
publicstaticclassSolution1 {
3110
publicintdeepestLeavesSum(TreeNoderoot) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp