15
odwl
4 17 33
1080/ 1195
Last seen 2 years ago
Member for 10 years, 2 months, 20 days
Difficulty Normal
Best reviews / Newest reviews
Functional-PositronicLlama 2 1
I think that list(zip(*matr)) is enough. More
for else-veky 2 2
I was sure you would have found something in l.4:) I do agree with the comment that treating boolean as int is less good than an equivalent without. I did the following by using bool as bool count = count + 1 if w[0].isalpha() else 0 More
First-aomoriringo 2
This actually incorrect for large input. Use itertools.count() instead of range(0, 1000) More
First-Juge_Ti 2
It is unreadable but wow, not even a loop. Did you applied a known math formula? More
First-htamas 2 1
sum(array[-1:] is an interesting way to avoid the empty array. This is probably the shortest readable solution. More
Speedy-Cjkjvfnby 1
Interesting way to get 0. Still very readable. More
First-Kasalehlia 1
You can avoid the second set creation by using intersection More
First-Gennady 1
You can use endswith Sorting before by len allow you to avoid the len comparison. Note that by sorting lexical, you could even avoid a loop More
regexp-drill3r92 1
1. You don't need the [] around the " 2. you can use () to select the words without the quotes 3. then you don't need to make a comprehension list: return [elem[1:-1] for elem in re.findall(r'["][^"]*["]' , a)] --> return re.findall(r'"([^"]*)"' , a) More
First-edomaur 1 1
You don't need the second set if you use intersection. More
First-RRRQ 1 1
Is that really faster than bin(number).count(1) ? More
Double loop-bryukh 1 1
By sorting words by len, you can have just a triangle matrix path By sorting lexical order, you can even avoid a search More
Simple-MatthiasWiesmann 1 1
return bin(n ^ m).count('1') This one seems unbeatable no? More
Hinted-veky 1 1
I guess this one is unbeatable in simplicity. More
First-MatthiasWiesmann 1
You can avoid the histogram with collections.Counter. More
First-BlueD
if you use intersection, you don't need the second set. More
First-asuranceturix
I don't think this should be in speedy because you have to compute everything even if the three first elments are words. More
Quick & Dirty-MatthiasWiesmann 1
You have to compute everything even it starts with 3 words More
First-kogi
I can't imagine this faster than int in a try catch. More
First-ignalion 1
I end up with the exact same solution. I guess it is the fastest possible one. More
1
2