Sorting algorithms/Cocktail sort with shifting bounds: Difference between revisions

m
C++ - removed unnecessary braces
(Added C++ solution)
m (C++ - removed unnecessary braces)
Line 275:
return;
std::cout << *begin++;
while (begin != end) {
std::cout << ' ' << *begin++;
}
std::cout << '\n';
}
1,777

edits