8
kot0begemot
1 6 20
235/ 345
Last seen 3 years ago
Member for 8 years, 7 months, 5 days
Difficulty Normal
Best reviews / Newest reviews
Random fact: The total number of steps in the Eiffel Tower are 1665.-siebenschlaefer 1
using multiple return point is not really neccesary and even malicious. More
First-Vahahal 1 1
Wow, you just reinvented a bicycle! :) There is a built-in int() in Python that can use radix as a second argument: int('FF', 16) == 255 More
First-dobriy_dada
Is it ok to import inside defenitions? Just asking. More
First-VVS
too virtuos, man. also multiple return is bad More
last-anonymorf
good idea of counting x,o or d's. multiple return is harmful u'd better avoid it. More
First-rouxbuciu
very very direct. Thanx, I ve learned about map() from your solution More
First-xuanhung0111
Realisation looks logical. Probably could use more advanced techniques. More
First-light2happy.718
Style looks like you came to Python from other language. More
First-syoji.nakanishi 1
Very straight and simple logic solution. More
Slice Notation Galore-tigercat2000
So much comments! Nice pythonic slice. More
First-sitric 1
Hi! Clear one but why soo much conditions to check? The task gives strict definitions on your 1st "if" so i suppose it is not needed. Good luck! More
First-franot98
Nice and clear. By the way, you can remove True from line 4 == True in "if" condition, if i.isupper(): is enough in Python! :) More
First-Victor161101
All clear. Btw you can use key=abs w/o arguments in sorted to make it a bit more simple) More
First-sitric 1
I am not a real python pro but regarding you 1st conditions it was mentioned in task (last few lines): **Precondition: 0 < len(array) ≤ 10 0 ≤ N all(0 ≤ x ≤ 100 for x in array)** So you do not need to filter input like you did in the first IF Btw my solution was like: def index_power(arr More
First-mastak
Nice look on a task from different point of view! More
using collections Counter-n.kenealy
Collections is a nice lib. Think i should study it either. More