Skip to content

Commit 6b46506

Browse files
committed
add more solutions
1 parent 9805392 commit 6b46506

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C++/findMinimumInRotatedSortedArray.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ class Solution {
1010

1111
while (start < end) {
1212
if (num[start] <= num[end - 1])
13-
return num[start];
13+
return num[start];
1414

1515
int mid = start + (end - start)/2;
1616

1717
if (num[mid] >= num[start]) {
1818
start = mid + 1;
1919
} else {
2020
if (mid == end - 1)
21-
return num[mid];
21+
return num[mid];
2222
else
23-
end = mid + 1;
23+
end = mid + 1;
2424
}
2525
}
2626

0 commit comments

Comments
 (0)