You are viewing a single comment's thread. Return to all comments →
Here is my python sollution
def runningTime(a): dem = 0 for i in range(1,len(a)): for j in range(i-1,-1,-1): if a[i] < a[j] : a[j],a[i] = a[i],a[j] i -=1 dem += 1 return dem
Seems like cookies are disabled on this browser, please enable them to open this website
Running Time of Algorithms
You are viewing a single comment's thread. Return to all comments →
Here is my python sollution