diff --git a/src/main/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/Solution.java b/src/main/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/Solution.java index bd28cda39..3d7e3c8d7 100644 --- a/src/main/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/Solution.java +++ b/src/main/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/Solution.java @@ -20,7 +20,8 @@ public int[] maximumWeight(List> 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]) {