21
spoty
6 23 37
2436/ 2695
Last seen 1 year ago
Member for 10 years, 7 months
Difficulty Normal
Best reviews / Newest reviews
First-szczur
instead of result=int(n)*result you can write result *= int(n) More
First-randers
Hello stranger, if condition: return True else: return False is same as: return condition and one more, str has [endswith](https://docs.python.org/2/library/stdtypes.html#str.endswith) More
First-WpoZoo 1
or with generator: count_inversion = lambda nums: sum(1 for i in combinations(list(nums), 2) if i[0] > i[1]) More
Absolute Sorting-MadCow234
Hello stranger, key=abs is sufficient. More
1 2
3