(arr1)
| 70 | |
| 71 | # 冒泡 |
| 72 | def bubble_sort(arr1): |
| 73 | for i in range(len(arr1)): |
| 74 | for j in range(len(arr1[1:])): |
| 75 | if arr1[i] < arr1[j]: |
| 76 | arr1[i], arr1[j] = arr1[j], arr1[i] |
| 77 | return arr1 |
| 78 | |
| 79 | print(merge_sort([1,7,6, 8,22,6,77,11, 66, 14])) |
| 80 |
nothing calls this directly
no outgoing calls
no test coverage detected