Khác biệt giữa bản sửa đổi của “Sắp xếp nổi bọt”
Nội dung được xóa Nội dung được thêm vào
update C++ code to make compatible with modern C++ standard |
|||
Dòng 106:
inline void bubbleSort(int *begin, unsigned count) {
bool swapped = false; // job_done = !swapped
for (int *i = begin, *e = begin + count; i != e; ++i) {
|