We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e2d66 commit 41b4b16Copy full SHA for 41b4b16
src/main/java/com/fishercoder/solutions/_938.java
@@ -7,12 +7,12 @@
7
8
public class _938 {
9
public static class Solution1 {
10
- public int rangeSumBST(TreeNode root, int L, int R) {
+ public int rangeSumBST(TreeNode root, int low, int high) {
11
if (root == null) {
12
return 0;
13
}
14
List<Integer> list = new ArrayList<>();
15
- dfs(root, L, R, list);
+ dfs(root, low, high, list);
16
return list.stream().mapToInt(num -> num).sum();
17
18
0 commit comments