Skip to content

Bubble sort · ⁨冒泡排序⁩

English

Sorting puts items in order

  • Sorting rearranges a list into order — smallest to largest, say.
  • Bubble sort is the standard method named in the syllabus.
  • It compares neighbours and swaps any that are the wrong way round.
中文

排序把元素排好顺序

  • 排序(sorting)把列表重新排成某种顺序 —— 比如从小到大。
  • 冒泡排序(bubble sort)是考纲里点名的标准方法。
  • 它比较相邻的两个元素,把顺序反了的交换过来。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩