Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Not just lists solution in Clear category for Ascending List by tom-tom
from typing import Iterable
from itertools import tee
def is_ascending(items: Iterable[int]) -> bool:
first, second = tee(items)
next(second, None)
return all(a < b for a, b in zip(first, second))
Nov. 10, 2018
Comments: