Skip to content

Commit 1cfd39a

Browse files
authored
Update 1.cpp
1 parent 2143db1 commit 1cfd39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

15/1.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using namespace std;
44

55
// 값이 [left_value, right_value]인 데이터의 개수를 반환하는 함수
6-
int countByRange(vector<int> v, int leftValue, int rightValue) {
6+
int countByRange(vector<int>& v, int leftValue, int rightValue) {
77
vector<int>::iterator rightIndex = upper_bound(v.begin(), v.end(), rightValue);
88
vector<int>::iterator leftIndex = lower_bound(v.begin(), v.end(), leftValue);
99
return rightIndex - leftIndex;

0 commit comments

Comments
 (0)