Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sorted and set solution in Clear category for Ascending List by yoichi
from typing import Iterable
def is_ascending(items: Iterable[int]) -> bool:
return sorted(set(items)) == items
Nov. 5, 2018