Skip to content

Commit 48b91b3

Browse files
authored
Update 2.cpp
1 parent 5429453 commit 48b91b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7/2.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
if (start > end) return -1;
88
int mid = (start + end) / 2;
99
// 찾은 경우 중간점 인덱스 반환

0 commit comments

Comments
 (0)