Skip to content · ⁨Bỏ qua nội dung⁩

Sorting: bubble, selection, and insertion · ⁨Sắp xếp: bubble, selection, và insertion⁩

English

Putting an array in order

  • Sorting rearranges an array so the items go from smallest to largest.
  • We sort in place: we move items around inside the same array, with no return value.
  • Three classic methods do this: bubble, insertion, and selection sort.
Tiếng Việt

Sắp xếp một mảng

  • Sắp xếp sắp xếp lại một mảng sao cho các phần tử đi từ nhỏ đến lớn.
  • Chúng ta sắp xếp ngay tại chỗ: di chuyển các phần tử xung quanh bên trong cùng một mảng, mà không có giá trị trả về.
  • Ba phương pháp cổ điển thực hiện việc này: sắp xếp bọt, sắp xếp chèn và sắp xếp lựa chọn.

Handout · ⁨Tài liệu⁩

Log in or create account · ⁨Đăng nhập hoặc tạo tài khoản⁩

IGCSE, A-Level & AP