01
Foundations
·
Iterative Comparison
Bubble Sort
⏱
O(n²)
◧
O(1)
5
0
2
1
9
2
1
3
6
4
3
5
8
6
4
7
State vector
[
5
,
2
,
9
,
1
,
6
,
3
,
8
,
4
]
Step
1
/ 51
Speed
0.5×
1×
2×
4×