Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Not in Order by Wartem
def not_order(data: list[int]) -> int:
return sum(1 for n, s_n in zip(data, sorted(data)) if n != s_n)
Nov. 10, 2022
Comments: