Skip to content

Commit 4ac60a8

Browse files
authored
Update missing-number-in-arithmetic-progression.cpp
1 parent 110bf9a commit 4ac60a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

C++/missing-number-in-arithmetic-progression.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Solution {
66
int missingNumber(vector<int>& arr) {
77
const auto& d = (arr.back() - arr[0]) / static_cast<int>(arr.size());
88
int left = 0, right = arr.size() - 1;
9-
cout << left << " " << right << endl;
109
while (left <= right) {
1110
const auto& mid = left + (right - left) / 2;
1211
if (check(arr, d, mid)) {

0 commit comments

Comments
 (0)