冒泡排序 Bubble sort

Bubble sort冒泡排序

@See https://en.wikipedia.org/wiki/Bubble_sortarrow-up-right @See https://github.com/jiek2529/java_algorithmarrow-up-right - BubbleSort

principle原理

依次两两比较,把大数向后置换,最后数在最后,最小数在最前。 每轮排完,下轮排序个数减一。

example示例

Last updated

Was this helpful?