Skip to content

Commit 41b4b16

Browse files
refactor 938
1 parent 35e2d66 commit 41b4b16

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_938.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
public class _938 {
99
public static class Solution1 {
10-
public int rangeSumBST(TreeNode root, int L, int R) {
10+
public int rangeSumBST(TreeNode root, int low, int high) {
1111
if (root == null) {
1212
return 0;
1313
}
1414
List<Integer> list = new ArrayList<>();
15-
dfs(root, L, R, list);
15+
dfs(root, low, high, list);
1616
return list.stream().mapToInt(num -> num).sum();
1717
}
1818

0 commit comments

Comments
 (0)