Skip to content

Commit 4d0f629

Browse files
committed
Update Solution.java
1 parent 90a1f79 commit 4d0f629

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/g0401_0500/s0437_path_sum_iii/Solution.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import com_github_leetcode.TreeNode;
77

8+
import java.util.HashMap;
9+
810
/*
911
* Definition for a binary tree node.
1012
* public class TreeNode {
@@ -22,7 +24,7 @@
2224
*/
2325
public class Solution {
2426
public int pathSum(TreeNode root, int targetSum) {
25-
Map<Long, Integer> h = new HashMap<>();
27+
HashMap<Long, Integer> h = new HashMap<>();
2628
return dfs(root, targetSum, h, 0L);
2729
}
2830

0 commit comments

Comments
 (0)