Skip to content

Commit

Permalink
Renaming Java files to correct format
Browse files Browse the repository at this point in the history
  • Loading branch information
a93a committed Jan 19, 2023
1 parent 20bf430 commit ffec88c
Show file tree
Hide file tree
Showing 25 changed files with 15 additions and 15 deletions.
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.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class Solution {
public TreeNode trimBST(TreeNode root, int low, int high) {
if(root == null){
return root;
}
if(root.val > high){
return trimBST(root.left, low, high);
}
if(root.val < low){
return trimBST(root.right, low, high);
}
root.left = trimBST(root.left, low, high);
root.right = trimBST(root.right, low, high);
return root;
}
class Solution {
public TreeNode trimBST(TreeNode root, int low, int high) {
if(root == null){
return root;
}
if(root.val > high){
return trimBST(root.left, low, high);
}
if(root.val < low){
return trimBST(root.right, low, high);
}
root.left = trimBST(root.left, low, high);
root.right = trimBST(root.right, low, high);
return root;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ffec88c

Please sign in to comment.