You are viewing a single comment's thread. Return to all comments →
Python:
s = 0 for i in range(1, len(a)): for j in range(i): if a[j] > a[i]: s += 1 a[i], a[j] = a[j], a[i]
Seems like cookies are disabled on this browser, please enable them to open this website
Sorting: Bubble Sort
You are viewing a single comment's thread. Return to all comments →
Python: