py-bros / Python-Excercises

0 stars 0 forks source link

Thanos Sort #3

Open QuantumNovice opened 4 years ago

QuantumNovice commented 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

tapchik commented 4 years ago

@QuantumNovice Oh my god, that's so genious. Thanks for advice!