July 16, 2022, 8:48 p.m. |
+ 5 |
for
groupby-flpo
|
July 16, 2022, 8:35 p.m. |
+ 5 |
for
from itertools import not compress-veky
|
July 12, 2022, 7:23 p.m. |
+ 1 |
for Comment
entreoutros: Interesting use of list to keep the sum instead of int, so you can save one line in the POP part ins...
|
July 10, 2022, 6:12 p.m. |
+ 5 |
for
Enum-veky
|
July 7, 2022, 7:51 p.m. |
+ 1 |
for Comment
entreoutros: Good one! You actually don't even need to convert g to a list, as sum() works fine on it directly!
|
July 6, 2022, 6:48 p.m. |
+ 1 |
for Comment
viktor.chyrkin: nice
|
July 2, 2022, 8:41 p.m. |
+ 2 |
for
First-lechrudik
|
July 2, 2022, 8:41 p.m. |
+ 2 |
for
Iterator-Oleg_Babaev
|
July 2, 2022, 8:41 p.m. |
+ 2 |
for
First-viktor.chyrkin
|
June 27, 2022, 5:55 p.m. |
+ 1 |
for Comment
Wojtek_Okularczyk: I think you don't need to sort while creating a dictionary.
|
June 25, 2022, 6:57 p.m. |
+ 5 |
for
'list' object has no attribute 'find'-karlian
|
June 25, 2022, 6:56 p.m. |
+ 5 |
for
First-Left_handsomeness
|
June 25, 2022, 6:55 p.m. |
+ 5 |
for
sorted-Sinv
|
June 25, 2022, 6:54 p.m. |
+ 5 |
for
sorted == words-flpo
|
June 21, 2022, 8:35 p.m. |
+ 5 |
for
First-gyahun_dash
|
June 21, 2022, 8:24 p.m. |
+ 1 |
for Comment
hbczmxy: Your solution is great! And it is very original, especially the use of regular expressions!
|
June 18, 2022, 3:34 p.m. |
+ 1 |
for Task
Triangular Islands
|
June 13, 2022, 5:14 a.m. |
+ 1 |
for Comment
Sergey_K: Using generator would reduce the code length, I suppose.
|
June 11, 2022, 5:15 p.m. |
+ 5 |
for
str_73-fantakeshi
|
June 11, 2022, 5:13 p.m. |
+ 5 |
for
First-NyuuYouGyuu
|
June 11, 2022, 5:12 p.m. |
+ 5 |
for
Recursion-nikita.dzhigir
|
June 7, 2022, 7:20 p.m. |
+ 5 |
for
First-Denis_Daleb_ga
|
June 5, 2022, 3 p.m. |
+ 1 |
for Comment
Wartem: Very nice indeed
|
June 4, 2022, 7:20 p.m. |
+ 5 |
for
OOP plague-quarkov
|
May 29, 2022, 6:09 a.m. |
+ 1 |
for
endswith-oduvan
|
May 29, 2022, 6:08 a.m. |
+ 1 |
for
Find Max Price First-oduvan
|
May 23, 2022, 6:41 p.m. |
+ 5 |
for
sum with generator-lxf42
|
May 22, 2022, 5:48 p.m. |
+ 1 |
for Comment
pathFinder586: Correct and clear. I like that you even add an "Unknown figure!" for the rest conditions.
|
May 21, 2022, 10:25 a.m. |
+ 1 |
for
Ghostbusters-oduvan
|
May 16, 2022, 6:27 a.m. |
+ 5 |
for
Bigger Together - naive approach-BeranekP
|
May 15, 2022, 5:10 p.m. |
+ 1 |
for Comment
russell.vinegar: Similar to my own solution but with a simple counter instead of building a list of real words (duh!)...
|
May 14, 2022, 10 a.m. |
+ 3 |
for
Remove and Turn-oduvan
|
May 14, 2022, 9:54 a.m. |
+ 3 |
for
Sort first-oduvan
|
May 13, 2022, 3:44 p.m. |
+ 1 |
for Comment
heinrich.rhing: Instead of "if ...: if ...:" you may write "if ... and ...:" and an empty list is always False - so ...
|
May 10, 2022, 5:27 a.m. |
+ 1 |
for Comment
baldaevm: You can unite two if-conditions by using /or/ operator. It will shorten your code
|
May 10, 2022, 5:18 a.m. |
+ 1 |
for Comment
baldaevm: You can unite the first two if-statements, and return /line/, that will work for both conditions
|
May 8, 2022, 9:55 a.m. |
+ 3 |
for
First-hbczmxy
|
May 8, 2022, 9:44 a.m. |
+ 1 |
for Comment
hbczmxy: My solution is basically the same as yours. A simple and universal solution.
|
May 8, 2022, 5:52 a.m. |
+ 5 |
for
First-Moff
|
May 7, 2022, 5:54 a.m. |
+ 5 |
for
Operator-oduvan
|
May 7, 2022, 5:30 a.m. |
+ 5 |
for
First-htamas
|
May 6, 2022, 5:13 p.m. |
+ 1 |
for Comment
hbczmxy: 你的答案真是别出心裁!`list.insert`的使用恰到好处! Your answer is so ingenious! Clever use of `list.insert`!
|
May 5, 2022, 6:11 a.m. |
+ 5 |
for
normalize and rotate-juestr
|
May 5, 2022, 5:54 a.m. |
+ 5 |
for
Rotating images-tom-tom_f993b3abc4814d4cb5476e
|
April 29, 2022, 5:29 a.m. |
+ 1 |
for Comment
Mariano-starter: Using index is quite smart
|
April 26, 2022, 11:54 a.m. |
+ 1 |
for Comment
lxf42: nice, the solution has a small inconvenience, the object type is not __main__.Capital as some might ...
|
April 23, 2022, 9:19 p.m. |
+ 5 |
for
Keep testing match-oduvan
|
April 23, 2022, 9:19 p.m. |
+ 5 |
for
Merger Recursion-oduvan
|
April 23, 2022, 9:18 p.m. |
+ 5 |
for
First-oduvan
|
April 21, 2022, 6:45 a.m. |
+ 1 |
for Task
Every Person is Unique
|
April 15, 2022, 6:14 a.m. |
+ 5 |
for
StepByStep-Kouri
|
April 14, 2022, 4:42 p.m. |
+ 1 |
for Comment
lxf42: Two remarks: - instead of Counter you could use the standard set - for a very long line, your code w...
|
April 13, 2022, 11:34 a.m. |
+ 5 |
for
Dictionary with rotated figures-vit.aborigen
|
April 12, 2022, 6:34 a.m. |
+ 5 |
for
Recursion-caynan
|
April 6, 2022, 8:05 a.m. |
+ 5 |
for
ICE BASE - "The Most Numbers"-jsg-inet
|
April 4, 2022, 7:28 p.m. |
+ 1 |
for Comment
jsg-inet: Nice 3 solutions. I like so much the second one.
|
April 2, 2022, 9:51 p.m. |
+ 5 |
for
you don't need parentheses-oduvan
|
April 2, 2022, 9:50 p.m. |
+ 5 |
for
simple yield-oduvan
|
April 2, 2022, 9:27 p.m. |
+ 5 |
for
First-oduvan
|
April 1, 2022, 6:20 a.m. |
+ 5 |
for
fractions.Fraction-kurosawa4434
|
April 1, 2022, 6:19 a.m. |
+ 5 |
for
Count the f's --- an exercise in perception-veky
|
March 31, 2022, 6:12 a.m. |
+ 5 |
for
I like recursion-fed.kz
|
March 27, 2022, 1:04 p.m. |
+ 1 |
for Comment
Selindian: Nice. If you had used modulo, you could have left out the if. But i really like it this way. :-)
|
March 26, 2022, 6:56 a.m. |
+ 5 |
for
First-arggg55
|
March 26, 2022, 6:32 a.m. |
+ 5 |
for
Because Dictionary-greaselovely
|
March 26, 2022, 6:31 a.m. |
+ 5 |
for
dictionary comprehension-Tom_from_Berlin
|
March 26, 2022, 6:31 a.m. |
+ 5 |
for
collections.Counter and dictcomp-perimeter
|
March 26, 2022, 6:26 a.m. |
+ 5 |
for
Ceph's Refactored-suic
|
March 25, 2022, 10:20 a.m. |
+ 5 |
for
7-liner: simple-przemyslaw.daniel
|
March 25, 2022, 8:57 a.m. |
+ 1 |
for Comment
Oksana_Antropova: Actually, it's (?=(.*).*\1). Dont's forget the external brackets. \. - any symbol except '\n' \* - 0...
|
March 19, 2022, 10:04 p.m. |
+ 1 |
for Comment
debruben: good solution
|
March 19, 2022, 7:42 a.m. |
+ 5 |
for
lambda encoder-Alexey.K.
|
March 19, 2022, 7:41 a.m. |
+ 5 |
for
my first solution for-boris_bondarenko
|
March 19, 2022, 7:39 a.m. |
+ 5 |
for
First-hbczmxy
|
March 19, 2022, 7:06 a.m. |
+ 5 |
for
First-tom-tom_f993b3abc4814d4cb5476e
|
March 18, 2022, 6:57 a.m. |
+ 1 |
for Comment
veky: Ah... as if you asked "what's the advantage of living in 21st century instead of 19th one?" :-P Ther...
|
March 18, 2022, 6:55 a.m. |
+ 5 |
for
First-Sim0000
|
March 17, 2022, 6:58 a.m. |
+ 5 |
for
one-liner-tom-tom_f993b3abc4814d4cb5476e
|
March 15, 2022, 7:27 a.m. |
+ 5 |
for
Short-Phil15
|
March 13, 2022, 6:53 a.m. |
+ 5 |
for
✧*。٩(ˊᗜˋ*)و✧*。-vmiimu
|
March 12, 2022, 1:05 p.m. |
+ 5 |
for
Second: Using Regex-dbirmajer
|
March 12, 2022, 1:04 p.m. |
+ 3 |
for
First-Hunteena
|
March 12, 2022, 12:57 p.m. |
+ 5 |
for
Should be easy to understand-Selindian
|
March 12, 2022, 7:12 a.m. |
+ 5 |
for
First-tom-tom_f993b3abc4814d4cb5476e
|
March 9, 2022, 4:51 p.m. |
+ 1 |
for Comment
Hemanth_Reddy: It was the best answer to give
|
March 8, 2022, 8:17 a.m. |
+ 5 |
for
Second-tom-tom_f993b3abc4814d4cb5476e
|
March 7, 2022, 5:18 p.m. |
+ 1 |
for Comment
CDG.Axel: What is the reason of "import string"? It's very good case where EAFP >> LBYL.
|
March 5, 2022, 10:53 p.m. |
+ 5 |
for
Just join and replace-bravebug
|
March 5, 2022, 10:50 p.m. |
+ 5 |
for
INNER JOIN-veky
|
March 5, 2022, 10:49 p.m. |
+ 5 |
for
First-mr.floppy
|
Feb. 28, 2022, 5:02 p.m. |
+ 1 |
for Comment
seltata: Use txt.find('a') = -1 if 'a' not in txt or index('a') if in.
|
Feb. 26, 2022, 9:10 a.m. |
+ 5 |
for
numpy.argmin-piter239
|
Feb. 26, 2022, 7:21 a.m. |
+ 5 |
for
One Line -schmoogi
|
Feb. 26, 2022, 7:21 a.m. |
+ 5 |
for
First-baranikov
|
Feb. 26, 2022, 7:20 a.m. |
+ 5 |
for
First-domokdavid
|
Feb. 23, 2022, 5:35 p.m. |
+ 1 |
for Comment
user171717x_fe15ce20870d49e08d: Best solution, but what about more shorter case: 01. from typing import Iterable 02. 03. def remove_...
|
Feb. 23, 2022, 1:09 p.m. |
+ 3 |
for
BFS-bryukh
|
Feb. 20, 2022, 12:37 p.m. |
+ 1 |
for Comment
yizhexu: Creative for sure... I never thought about that way
|
Feb. 20, 2022, 7:02 a.m. |
+ 1 |
for Comment
Phil15: I kinda like it. It would be a bit ineficient to iterate over an entire book and list all indexes bu...
|
Feb. 20, 2022, 6:58 a.m. |
+ 5 |
for
str.index - ValueError-oduvan
|