You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def bubbleSort( sorti ):
n = len( sorti )
for i in range( n - 1 ) :
flag = 0
for j in range(n - 1) :
if sorti[j] > sorti[j + 1] :
tmp = sorti[j]
sorti[j] = theSeq[j + 1]
sorti[j + 1] = tmp
flag = 1
if flag == 0:
break
return sorti
Originally posted by @riya-kumari023 in #23 (comment)
The text was updated successfully, but these errors were encountered: