📜  时间复杂度冒泡排序 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:14.947000             🧑  作者: Mango

代码示例1
Bubble sort has a worst-case and average complexity of О(n2), where n is the number of items being sorted. Most practical sorting algorithms have substantially better worst-case or average complexity, often O(n log n).