Skip to content

Commit d590bbb

Browse files
authored
Update sort-even-and-odd-indices-independently.cpp
1 parent 31de1a2 commit d590bbb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

C++/sort-even-and-odd-indices-independently.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ class Solution {
4242
count[i] += count[i - 1];
4343
}
4444
for (int i = right; i >= left; --i) { // inplace but unstable sort
45-
if ((*nums)[i] < 0) { // processed
46-
continue;
47-
}
4845
while ((*nums)[i] >= 0) {
4946
--count[(*nums)[i]];
5047
const int j = left + count[(*nums)[i]];

0 commit comments

Comments
 (0)