Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Get outa here solution in Creative category for Robot Sort by veky
def swapsort(array):
l = list(array)
try: m = l.index(max(l))
except ValueError: return ""
else:
l.pop(m)
start = "".join("{}{},".format(i,i+1) for i in range(m, len(l)))
return (start + swapsort(l)).rstrip(",")
July 9, 2014
Comments: