We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a0ead commit 8d7fd69Copy full SHA for 8d7fd69
15/1.java
@@ -22,7 +22,7 @@ public static int upperBound(int[] arr, int target, int start, int end) {
22
23
// 값이 [left_value, right_value]인 데이터의 개수를 반환하는 함수
24
public static int countByRange(int[] arr, int leftValue, int rightValue) {
25
- // 유의: lowerBound와 upperBound는 배열의 길이를 end 변수의 값으로 설정
+ // 유의: lowerBound와 upperBound는 end 변수의 값을 배열의 길이로 설정
26
int rightIndex = upperBound(arr, rightValue, 0, arr.length);
27
int leftIndex = lowerBound(arr, leftValue, 0, arr.length);
28
return rightIndex - leftIndex;
0 commit comments