April 3, 2018, 1:07 p.m. |
+ 1 |
for Comment
joshiji: Seeing others code makes me feel why I could never think of such usages. Awesome use of any and list...
|
Dec. 7, 2017, 11:39 a.m. |
+ 1 |
for Comment
bootoffav: Good solution, however, I would replace this pattern '+[.!-]*' with more broadly covered string.punc...
|
Sept. 4, 2017, 10:52 a.m. |
+ 1 |
for Comment
StefanPochmann: The title is a misnomer. This blog entry isn't about understanding the `is` operator, it's almost on...
|
Aug. 16, 2017, 9:52 a.m. |
+ 1 |
for Comment
IcaroIA: Nice, I went with strftime it causes some issues, your solution simplifies using a single module, we...
|
May 18, 2017, 4:32 p.m. |
+ 1 |
for Comment
suic: This is so funny :) 1. "all the magic" (including `itertools.groupby`) on one-line. 2. wrapped by a ...
|
May 18, 2017, 4:09 p.m. |
+ 1 |
for Comment
Wienands: With the help of narimiran, who showed me what a set is and how tuple unpacking works.
|
May 7, 2017, 4:34 p.m. |
+ 2 |
for
2-liner: Fizz % Buzz -przemyslaw.daniel
|
May 7, 2017, 4:26 p.m. |
+ 3 |
for
more than one line-jesaispas
|
May 7, 2017, 4:08 p.m. |
+ 2 |
for
Simple without re-suic
|
May 7, 2017, 3:39 p.m. |
+ 1 |
for Comment
suic: Update: `iter()` is redundant too :)
|
May 6, 2017, 4:54 p.m. |
+ 1 |
for Comment
suic: Hi, as `any` returns a `bool`: return any(search(reg, subj) for reg in stress_regs) Regards, suic
|
May 6, 2017, 4:32 p.m. |
+ 2 |
for
use set object-kurosawa4434
|
May 6, 2017, 3:16 p.m. |
+ 1 |
for Comment
suic: Hi, two comments: 1. You could "precompile" the regexes and used the compiled version in `re.search`...
|
May 6, 2017, 10:33 a.m. |
+ 2 |
for
Magic**2-{d}-hrvoje
|
May 5, 2017, 8:04 p.m. |
+ 3 |
for
17-liner: clean-przemyslaw.daniel
|
May 3, 2017, 3:13 p.m. |
+ 1 |
for Comment
suic: 5. Optionally, you can use short-circuiting instead of if: ```python checkio = lambda a: len(a) and ...
|
May 3, 2017, 5:31 a.m. |
+ 1 |
for Comment
oduvan: new tests are added. https://github.com/oduvan/checkio-mission-stressful-subject/commit/7b5ea74abb1b...
|
April 28, 2017, 4:17 p.m. |
+ 1 |
for Comment
uNdim: Yeah, this one fixed too, you won't receive any solutions you already reviewed before. But if you sa...
|
April 28, 2017, 4:17 p.m. |
+ 1 |
for Comment
uNdim: You are right, reviewer should see solutions he reviewed before. We fixed permissions and now it is ...
|
April 28, 2017, 2:48 p.m. |
+ 1 |
for
First-Ardillo95
|
April 28, 2017, 2:21 p.m. |
+ 2 |
for
Second-gyahun_dash
|
April 28, 2017, 2:05 p.m. |
+ 2 |
for
DP-gyahun_dash
|
April 28, 2017, 1:58 p.m. |
+ 2 |
for
First-pohmelie
|
April 28, 2017, 1:55 p.m. |
+ 2 |
for
First-takapt0226
|
April 28, 2017, 7:10 a.m. |
+ 1 |
for
First-Sim0000
|
April 27, 2017, 5:37 p.m. |
+ 1 |
for
union_find-ciel
|
April 26, 2017, 6:45 p.m. |
+ 1 |
for
Smart One Liner-DahliaSR
|
April 26, 2017, 6:36 p.m. |
+ 2 |
for
Bitwise Only-DahliaSR
|
April 26, 2017, 6:35 p.m. |
+ 1 |
for
A Bit Wise?-DahliaSR
|
April 26, 2017, 5:53 p.m. |
+ 1 |
for Comment
oduvan: > I don’t want yet to upgrade to version 3.6. Why?
|
April 26, 2017, 3:14 p.m. |
+ 1 |
for Comment
Tinus_Trotyl: In contrast to the list.sort() method, the sorted() function accepts any iterable, so you didn't nee...
|
April 26, 2017, 8:48 a.m. |
+ 1 |
for
find the center and count the sides-Joni_Braslaver
|
April 26, 2017, 7:26 a.m. |
+ 1 |
for Comment
siebenschlaefer: FYI: Instead of manually listing all permutations of ``[0, 1, 2]`` you could use the ``itertools`` m...
|
April 25, 2017, 7:20 p.m. |
+ 1 |
for
First-LMAO
|
April 25, 2017, 5:52 p.m. |
+ 1 |
for
First-Sim0000
|
April 22, 2017, 7:17 p.m. |
+ 1 |
for Comment
blabaster: if n1 == 0 or n2 == 0: return n1 + n2
|
April 22, 2017, 7:16 p.m. |
+ 1 |
for Comment
blabaster: >>> False == 0 True >>> True == 1 True so line№16 looks excessive
|
April 22, 2017, 6:08 p.m. |
+ 1 |
for
cmath-DiZ
|
April 22, 2017, 5:54 p.m. |
+ 2 |
for
Skinny and Fatty-Pouf
|
April 20, 2017, 7:06 p.m. |
+ 2 |
for
Painting with Unions-PythonWithPI
|
April 20, 2017, 7:04 p.m. |
+ 2 |
for
Second-gyahun_dash
|
April 20, 2017, 7:04 p.m. |
+ 2 |
for
Painting Wall-1-more
|
April 20, 2017, 7:03 p.m. |
+ 1 |
for
Interior Points and Sizes-jtokaz
|
April 20, 2017, 7:03 p.m. |
+ 1 |
for
Itertools FTW-nicuveo
|
Dec. 29, 2016, 4:30 p.m. |
+ 1 |
for Comment
siebenschlaefer: I see that you are using prime divisors exclusively. You might want to consider using other divisors...
|
Dec. 9, 2016, 7:59 p.m. |
+ 1 |
for Comment
veky: Special cases are not special. Just delete lines 2~4. :-)
|
Dec. 9, 2016, 7:59 p.m. |
+ 1 |
for Comment
veky: You're aware that you didn't have to subtract that 96, right? :-)
|
Dec. 8, 2016, 6:23 p.m. |
+ 1 |
for
Truth Table-DerryK
|
Dec. 4, 2016, 4:33 p.m. |
+ 2 |
for
Using sympy.geometry.Polygon-alexgerdom
|
Dec. 3, 2016, 7:05 p.m. |
+ 1 |
for
First-takaki_1nj3ct0r
|
Dec. 3, 2016, 6:55 p.m. |
+ 1 |
for
First-Sim0000
|
Oct. 5, 2016, 6:03 p.m. |
+ 1 |
for Comment
nash8114: You compare sets of length four with with a set of only the first value. Nice to learn that Python h...
|
Aug. 9, 2016, 8:05 p.m. |
+ 1 |
for Comment
han97: instead of "98765432", better write range(9, 1, -1)
|
May 18, 2016, 2:13 p.m. |
+ 1 |
for Comment
DahliaSR: line 4: for let in list(text) why are you casting 'text' to a list? Strings are iterable! line 5: a....
|
May 18, 2016, 2:11 p.m. |
+ 1 |
for Comment
Flying_Eye: You can get the last element like this: `array[-1]`. And sum of all elements in a `container` can be...
|
May 9, 2016, 2:04 p.m. |
+ 1 |
for
Monthly. Faster. Random Review by Email
|
May 1, 2016, 6:07 p.m. |
+ 2 |
for
85-DiZ
|
April 30, 2016, 7:06 p.m. |
+ 2 |
for
Second-gyahun_dash
|
April 30, 2016, 11:33 a.m. |
+ 1 |
for Comment
veky: Yes, but they are really just one function (z |-> (z.real, z.imag)) which should have been factored ...
|
April 30, 2016, 11:27 a.m. |
+ 1 |
for
Good recursive-DiZ
|
April 30, 2016, 10:34 a.m. |
+ 1 |
for Comment
Sorrop: Once again thank you for your comments. Yes I'm using Py2 but I guess the time has come to move into...
|
April 30, 2016, 8:29 a.m. |
+ 1 |
for Comment
siebenschlaefer: Since you filed your solution under "clear": You could avoid some repetition by rewriting ``go``: ``...
|
April 29, 2016, 2:45 p.m. |
+ 1 |
for Comment
gyahun_dash: About line 9-12, if price//coin + length < shortest: return price // coin + length else: return shor...
|
April 28, 2016, 1:23 p.m. |
+ 2 |
for
str_73-fantakeshi
|
April 25, 2016, 7:54 p.m. |
+ 1 |
for Comment
veghadam1991: Hello! First thing: instance of **print** you have to use **return**. _Print_ is not equal with _ret...
|
April 25, 2016, 11:10 a.m. |
+ 1 |
for Comment
vikulin: **or gifts == number** part is useless, because this is definitely not the best gift anyway and this...
|
April 25, 2016, 10:47 a.m. |
+ 1 |
for
Default value trick-vikulin
|
April 25, 2016, 10:44 a.m. |
+ 1 |
for
Happy Halloween! Merry Christmas!-DiZ
|
April 24, 2016, 10:43 a.m. |
+ 2 |
for
Within 3 guesses-artakase
|
April 24, 2016, 10:26 a.m. |
+ 1 |
for
Intersect The Equivalence Classes-jad2192
|
April 24, 2016, 9:23 a.m. |
+ 1 |
for
Demystified-maurice.makaay
|
April 23, 2016, 5:09 p.m. |
+ 1 |
for
based on each metal is implicitly double-counted-jmegner
|
April 23, 2016, 10:23 a.m. |
+ 1 |
for Comment
Sim0000: In 1st example, **print( days )** is **5 days, 0:00:00** and **print( r )** is **17:08:34.285714**. ...
|
April 22, 2016, 8:11 a.m. |
+ 1 |
for Comment
minto: look into dynamic programming and consider that the only information you need is "how many coins", a...
|
April 22, 2016, 8:03 a.m. |
+ 1 |
for
First-Leonix
|
April 22, 2016, 7:49 a.m. |
+ 1 |
for
elimination-gyahun_dash
|
April 22, 2016, 7:45 a.m. |
+ 1 |
for
Second-LMAO
|
April 22, 2016, 7:42 a.m. |
+ 1 |
for
Worst-rfonseca
|
April 22, 2016, 7:37 a.m. |
+ 2 |
for
DFS with best choice-dagger126
|
April 21, 2016, 5:11 p.m. |
+ 1 |
for
First-xDiDx
|
April 21, 2016, 1:13 p.m. |
+ 1 |
for
Morse Clock-noahwp
|
April 21, 2016, 12:34 p.m. |
+ 2 |
for
First-tanukitchen
|
April 20, 2016, 8:43 a.m. |
+ 2 |
for
sentinel-DiZ
|
April 20, 2016, 8:33 a.m. |
+ 1 |
for
First-Sim0000
|
April 19, 2016, 1:59 p.m. |
+ 1 |
for Comment
siebenschlaefer: Since you filed your solution as "Clean": - You could use more expressive variable names, e.g. `line...
|
April 19, 2016, 1:56 p.m. |
+ 1 |
for
Second-gyahun_dash
|
April 19, 2016, 1:24 p.m. |
+ 1 |
for
operators-gyahun_dash
|
April 19, 2016, 12:52 p.m. |
+ 1 |
for Comment
jad2192: Very similar to my own expansion by minors solution. Just a quick note about the recursion: the 2x2 ...
|
April 19, 2016, 12:15 p.m. |
+ 1 |
for
Dynamic-veky
|
April 19, 2016, 9:45 a.m. |
+ 1 |
for Comment
suic: Have you heard about PEP8?
|
April 18, 2016, 4:57 p.m. |
+ 1 |
for
First in one line-nanka_bananka
|
April 18, 2016, 9:51 a.m. |
+ 2 |
for
auto-painting-bunnychai
|
April 17, 2016, 2:43 p.m. |
+ 1 |
for
First-Renelvon
|
April 17, 2016, 2:41 p.m. |
+ 2 |
for
First-nickie
|
April 17, 2016, 5:42 a.m. |
+ 2 |
for
multiple of 45-Sim0000
|
April 15, 2016, 2:56 p.m. |
+ 2 |
for
First-yoichi
|
April 15, 2016, 2:19 p.m. |
+ 1 |
for
First-rolandp
|
April 15, 2016, 2:17 p.m. |
+ 3 |
for
First-LMAO
|
April 14, 2016, 10:31 a.m. |
+ 1 |
for
First-mdigi
|
April 14, 2016, 8:52 a.m. |
+ 3 |
for
First-gyahun_dash
|