Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First. Try to fail fast solution in Speedy category for Ascending List by leggewie
def is_ascending(items) -> bool:
i=1
while i < len(items): # This is never run if len is 0 or 1 -> return True in line 7
if items[i - 1] >= items[i]:
return False # Try to fail as quickly as possible
i+=1
return True
May 24, 2021
Comments: