Skip to content

Commit 78f27ec

Browse files
committed
formatting: fix comment formatting issue
1 parent 1aeb33c commit 78f27ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/misc/RangeInSortedArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private RangeInSortedArray() {
2121
*/
2222
public static int[] sortedRange(int[] nums, int key) {
2323
int[] range = new int[] { -1, -1 };
24-
alteredBinSearchIter(nums, key, 0, nums.length - 1, range, true); // find left boundary
24+
alteredBinSearchIter(nums, key, 0, nums.length - 1, range, true); // find left boundary
2525
alteredBinSearchIter(nums, key, 0, nums.length - 1, range, false); // find right boundary
2626
return range;
2727
}
@@ -125,7 +125,7 @@ public static int getLessThan(int[] nums, int key, int left, int right) {
125125
right = mid - 1;
126126
} else {
127127
// nums[mid] <= key
128-
count = mid + 1; // all elements from 0 to mid inclusive are <= key
128+
count = mid + 1; // all elements from 0 to mid inclusive are <= key
129129
left = mid + 1;
130130
}
131131
}

0 commit comments

Comments
 (0)