Skip to content

Commit 1459cf3

Browse files
authored
Update 3.cpp
1 parent 1e134b7 commit 1459cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

15/3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ int main() {
1818
// 이진 탐색 수행을 위해 정렬 수행
1919
sort(arr.begin(), arr.end());
2020

21-
int start = 1; // 가능한 최소 거리 차이(min gap)
22-
int end = arr[n - 1] - arr[0]; // 가능한 최대 거리 차이(max gap)
21+
int start = 1; // 가능한 최소 거리(min gap)
22+
int end = arr[n - 1] - arr[0]; // 가능한 최대 거리(max gap)
2323
int result = 0;
2424

2525
while (start <= end) {

0 commit comments

Comments
 (0)