Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Basic recurrence solution in Clear category for Ascending List by new_hoschi
from typing import Iterable
def is_ascending(items: Iterable[int]) -> bool:
if not items:
return True
if len(items)==1:
return True
if items[0]>=items[1]:
return False
else:
return is_ascending(items[1:])
April 26, 2021
Comments: