Open QuantumNovice opened 4 years ago
@tapchik A more pythonic way is to use
def check(array): return sorted(array) == array
https://github.com/py-bros/Python-Excercises/blob/32df772fbb3f68a490ab039bfd7e9b655d345673/ThanosSort-tap.py#L6-L11
@QuantumNovice Oh my god, that's so genious. Thanks for advice!
@tapchik A more pythonic way is to use
https://github.com/py-bros/Python-Excercises/blob/32df772fbb3f68a490ab039bfd7e9b655d345673/ThanosSort-tap.py#L6-L11