Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev committed Jan 7, 2025
1 parent 19a5d09 commit 674ca39
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public int[] maximumWeight(List<List<Integer>> intervals) {
Arrays.sort(arr, (a, b) -> Long.compare(a[1], b[1]));
int[] p = new int[n];
for (int i = 0; i < n; i++) {
int l = 0, r = i - 1;
int l = 0;
int r = i - 1;
while (l <= r) {
int m = (l + r) >>> 1;
if (arr[m][1] < arr[i][0]) {
Expand Down

0 comments on commit 674ca39

Please sign in to comment.