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-sachiichi
OK, but why the h*** in the clear section? :) More
iter-blabaster 1
This is great solution! Can you explain why are you using underscore here: [_] for _ in str(key)] More
One Liner-kp25
This was also my first approach. Nice a clear. More
Shoelace-veky 1
Nice! Thanks for bringing up Shoelace formula. More
First-spoty
regex explanation: https://www.debuggex.com/r/PkBrSkiJw2nM4xb0 More
frozenbat-veky 1
WoW, I'll study this for weeks ;) More
Anagrams_compare_dicts-spoty
I just really like dictionaries :) More
5 methods-veky 1
veky, you are definitely my favorite Obfuscator here :) Can you pls explain translate({47+x:47-x for x in (1,2)})[2:] Thx :) More
First-shota243
I like divmode implementation. More
Find Sequence-spoty 2
Can somebody help me to eliminate duplication on lines 11-17? Thank you in advance! Yeah, my return could be nicer. return True if m(l+map(None, *l)+nw_se+ne_sw) else False More
__-Cjkjvfnby 1
I do not exactly know how these \1\1 references are working. Can you explain it to me? Thanks :) More
calls-spoty 1
OK: What should be better: 1. We don't need to use ceil: d[call[:10]] += (int(call[20:]) + 59) // 60 2. DiZ's solution is much more elegant: sum(x + (x - 100) * (x > 100) for x in d.values()) or Veky's: sum(m + max(m - 100, 0) for m in acc.values()) More
Recursive-spoty
ok, much better: return max(c - i + 1, w) More
First-nkapliev 1
Passing generic exceptions silently is bad practice. You can wrtie something like this instead: return max(args) - min(args) if args else 0 or return len(args) and max(args) - min(args) More
First-donBit
just a tip: return (array[n])**n if len(array) > n else -1 More
First-yama_k_1101 1
Faster and less memory consuming is to use generator, it didn’t have to store the entire list. return sum(1 for w in words if text.lower().find(w) != -1) aslo is IMHO better to use as condition if w in text.lower() More
First-ahmedengu
if text[i].isupper()==1 is the same as: if text[i].isupper() More
First-ahmedengu
When you want to use range(len(... think if you can't use enumerate(... instead. More
First-radekj
tip: return max(args) - min(args) if args else 0 More
First-e.roboda 1
what about: ','.join(phrases).replace("right","left") More
1
2
3