mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Add Longest Subarray With Sum Less Than or Equal to K algorithm (#6042)
This commit is contained in:
@@ -144,7 +144,7 @@ public class BinaryTree {
|
||||
if (temp == root) {
|
||||
root = null;
|
||||
} // This if/else assigns the new node to be either the left or right child of the
|
||||
// parent
|
||||
// parent
|
||||
else if (temp.parent.data < temp.data) {
|
||||
temp.parent.right = null;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user