Skip to content

Commit ffec88c

Browse files
committed
Renaming Java files to correct format
1 parent 20bf430 commit ffec88c

25 files changed

+15
-15
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
class Solution {
2-
public TreeNode trimBST(TreeNode root, int low, int high) {
3-
if(root == null){
4-
return root;
5-
}
6-
if(root.val > high){
7-
return trimBST(root.left, low, high);
8-
}
9-
if(root.val < low){
10-
return trimBST(root.right, low, high);
11-
}
12-
root.left = trimBST(root.left, low, high);
13-
root.right = trimBST(root.right, low, high);
14-
return root;
15-
}
1+
class Solution {
2+
public TreeNode trimBST(TreeNode root, int low, int high) {
3+
if(root == null){
4+
return root;
5+
}
6+
if(root.val > high){
7+
return trimBST(root.left, low, high);
8+
}
9+
if(root.val < low){
10+
return trimBST(root.right, low, high);
11+
}
12+
root.left = trimBST(root.left, low, high);
13+
root.right = trimBST(root.right, low, high);
14+
return root;
15+
}
1616
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)