Add Longest Subarray With Sum Less Than or Equal to K algorithm (#6042)

This commit is contained in:
PANKAJ PATWAL
2024-10-28 02:24:30 +05:30
committed by GitHub
parent a2e526b610
commit bca8d0efe0
4 changed files with 124 additions and 58 deletions

View File

@@ -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 {