Skip to content

Commit 5429453

Browse files
authored
Update 5.cpp
1 parent c14cf12 commit 5429453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7/5.cpp

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

55
// 이진 탐색 소스코드 구현(반복문)
6-
int binarySearch(vector<int> arr, int target, int start, int end) {
6+
int binarySearch(vector<int>& arr, int target, int start, int end) {
77
while (start <= end) {
88
int mid = (start + end) / 2;
99
// 찾은 경우 중간점 인덱스 반환

0 commit comments

Comments
 (0)