C++ dùng std::sort(a, a + n); Python dùng a.sort() hoặc sorted(a). Độ phức tạp O(N log N).
std::sort(a, a + n)
a.sort()
sorted(a)
Làm bài, chấm code và hỏi trợ lý Bit ngay trên web.