Sept. 12, 2019, 1:09 a.m. |
+ 1 |
for Comment
tokyoamado: Thank you for a good comment. I'd heard about `@lru_cache` but have not use it ever. On this occasio...
|
Sept. 10, 2019, 12:47 a.m. |
+ 1 |
for Comment
FirstShanti: Look like easy)
|
Aug. 7, 2019, 10:54 a.m. |
+ 1 |
for Comment
DragonMachinations: Interesting choice to use % 15 instead of doing an "and" bool.
|
Aug. 6, 2019, 12:22 p.m. |
+ 1 |
for Comment
obone: Looking good.
|
Aug. 2, 2019, 8:41 p.m. |
+ 1 |
for Comment
evrur97: This is very clever. Pad the string with the underscore and then clip it if not needed. Well done!
|
Aug. 1, 2019, 4:55 p.m. |
+ 1 |
for Comment
Sillte: Sorry for my late reply. Yes, you are absolutely right! Considering of comparison's rule, your sugge...
|
July 31, 2019, 12:29 a.m. |
+ 1 |
for Comment
evrur97: Function inside a function. Clever!
|
July 30, 2019, 11:28 p.m. |
+ 1 |
for Comment
evrur97: Nice use of the numpy library. Why reinvent the wheel, right?
|
July 28, 2019, 5:13 p.m. |
+ 1 |
for Comment
Sillte: Thank you for your productive advice. I agree with you that usage of ``dataclass`` realizes simpler ...
|
July 26, 2019, 1:08 a.m. |
+ 1 |
for
isleap, weekday, day_name-Olpag
|
July 25, 2019, 2:56 a.m. |
+ 2 |
for
textwrap-fokusd
|
July 17, 2019, 10:14 p.m. |
+ 1 |
for Comment
LintuStorm_a8334ed4883e45b9980: interesting
|
July 10, 2019, 1:41 p.m. |
+ 1 |
for Comment
obone: Triangle may have angles 1º + 1º + 178º.
|
July 9, 2019, 9:06 p.m. |
+ 1 |
for Comment
obone: This will make your solution too complicated, I guess. You must know where to stop. :)
|
July 9, 2019, 10:23 a.m. |
+ 1 |
for Comment
obone: Your solution looks good enough for production. But you can change expensive-cost third angle comput...
|
July 7, 2019, 7:15 p.m. |
+ 1 |
for Comment
johankor: good one.
|
July 6, 2019, 11:23 p.m. |
+ 1 |
for Task
Inertia
|
July 5, 2019, 12:27 p.m. |
+ 1 |
for
First-Wienands
|
July 5, 2019, 12:26 p.m. |
+ 3 |
for
Simple recursive-tokyoamado
|
July 5, 2019, 12:25 p.m. |
+ 3 |
for
recursion-yoichi
|
July 4, 2019, 10:02 a.m. |
+ 1 |
for Comment
oleg.tkhor: nice
|
June 22, 2019, 10:56 p.m. |
+ 1 |
for Comment
dannedved: What a simple and elegant solution, great job!
|
June 20, 2019, 9:27 a.m. |
+ 1 |
for Comment
qurutrevor: Very Pythonic. Solution in 3 lines. Wow.
|
June 15, 2019, 1:13 a.m. |
+ 1 |
for
First-flmhhh
|
June 13, 2019, 6:48 p.m. |
+ 1 |
for Comment
obone: Looks simple and clear.
|
May 31, 2019, 12:55 a.m. |
+ 1 |
for Comment
Logan__: Clear, well done
|
May 30, 2019, 6:53 p.m. |
+ 1 |
for Comment
veky: I still think that the documentation maps almost exactly to Python implementation: if len(args) == 2...
|
May 30, 2019, 11:54 a.m. |
+ 4 |
for
zip-kurosawa4434
|
May 30, 2019, 1:46 a.m. |
+ 1 |
for
Just use standard library-dexax
|
May 29, 2019, 9:16 p.m. |
+ 1 |
for
Recursive-flpo
|
May 29, 2019, 9:04 p.m. |
+ 1 |
for Comment
ktototamov: Great solution!
|
May 29, 2019, 7:20 p.m. |
+ 1 |
for Comment
DEADPOOL: Oh my god!
|
May 28, 2019, 1:16 a.m. |
+ 1 |
for Comment
IPK: Thank you, sure, it can be done in O(n), although it will cost O(n) memory overhead. I'm sorry, I've...
|
May 28, 2019, 1:09 a.m. |
+ 1 |
for Comment
rherron: Interesting. I didn't realize insertion order was captured in dictionaries, so it took me a minute t...
|
May 24, 2019, 11:20 p.m. |
+ 1 |
for
recursive search (DFS)-Sim0000
|
May 23, 2019, 9:33 p.m. |
+ 1 |
for
For hypercube!-mikra
|
May 22, 2019, 6:56 p.m. |
+ 1 |
for Post
No problem, not challenging IMO
|
May 22, 2019, 6:51 p.m. |
+ 1 |
for Post
difficulty level
|
May 21, 2019, 1:49 p.m. |
+ 1 |
for Comment
nrsaty: Making segment digit from literal digit pattern is great idea.
|
May 21, 2019, 1:43 p.m. |
+ 1 |
for Comment
nrsaty: Defining compare function is good idea. Easily share codes between min() and max().
|
May 21, 2019, 12:34 a.m. |
+ 1 |
for
collections.deque-David_Jones
|
May 21, 2019, 12:34 a.m. |
+ 1 |
for
First-mortonfox
|
May 21, 2019, 12:32 a.m. |
+ 1 |
for
Healers-fed.kz
|
May 21, 2019, 12:28 a.m. |
+ 1 |
for
Roman Numerals-ceho.main
|
May 19, 2019, 12:44 p.m. |
+ 1 |
for Post
Weak tests
|
May 19, 2019, 12:07 p.m. |
+ 2 |
for
Pure magic after zip spell-Merzix
|
May 18, 2019, 2:50 a.m. |
+ 1 |
for Comment
johan4622: Thank you for your comment. If I use that feature, I will rewrite it as: ```python def get_worth(wor...
|
May 17, 2019, 11:08 p.m. |
+ 1 |
for
without use string and string methods-Oleg_Domokeev
|
May 17, 2019, 12:42 a.m. |
+ 1 |
for
First-tom-tom_f993b3abc4814d4cb5476e
|
May 16, 2019, 8:12 p.m. |
+ 1 |
for
First-fed.kz
|
May 15, 2019, 6:08 p.m. |
+ 1 |
for
A simple complex mapping.-veky
|
May 15, 2019, 6:05 p.m. |
+ 1 |
for Comment
veky: Yeah, I forgot dicts have .pop. :-)
|
May 15, 2019, 3:08 p.m. |
+ 1 |
for Comment
JaxSnow: This works, but seems unnecessarily complicated. If you convert hours to int (as you do) and assign ...
|
May 15, 2019, 3:16 a.m. |
+ 2 |
for
All combination of points, then group them-tokyoamado
|
May 14, 2019, 12:28 p.m. |
+ 1 |
for Comment
colinmcnicholl: 1st bullet: Good comment. I submitted the code back in 2017. Since then I make use of enumerate when...
|
May 14, 2019, 1:42 a.m. |
+ 1 |
for
itertools-gyahun_dash
|
May 13, 2019, 8:37 p.m. |
+ 1 |
for
14-liner: 2 loops-przemyslaw.daniel
|
May 13, 2019, 8:34 p.m. |
+ 2 |
for
First-flpo
|
May 13, 2019, 11:19 a.m. |
+ 1 |
for Comment
mplichta: thx, in my daily work I don't care if it is 0.1s or 1.5s because python will be always faster then r...
|
May 13, 2019, 2:17 a.m. |
+ 1 |
for
double list comp-mplichta
|
May 12, 2019, 5:20 p.m. |
+ 1 |
for Task
Text Formatting
|
May 12, 2019, 5:14 p.m. |
+ 1 |
for Comment
Phil15: Yes it's your code # This works response = text_formatting(a, 38, 'l') assert response == answer # T...
|
May 12, 2019, 4:55 p.m. |
+ 1 |
for Comment
Phil15: I don't see why we shouldn't use f-strings, or available functions/modules, everyone is free to do a...
|
May 9, 2019, 1 p.m. |
+ 1 |
for Comment
Tical_1000: You’re right, thanks. I suppose that could make it a one-liner - for whatever that‘s worth :) Von me...
|
April 28, 2019, 1:05 a.m. |
+ 1 |
for
int to bin and maketrans in two lines-Olpag
|
April 27, 2019, 8:35 p.m. |
+ 1 |
for Comment
yishunwang935188: short and clean
|
April 26, 2019, 12:02 a.m. |
+ 1 |
for Comment
Oksana_Antropova: Sorting is a very bad idea, if you need to find min\max, because it's O(NlogN) at best, whereas min\...
|
April 22, 2019, 6:50 p.m. |
+ 1 |
for Comment
byronboulton: I like the simplicity of just laying out the tuples for horizontals, verticals, and diagonals.
|
April 22, 2019, 2:21 p.m. |
+ 1 |
for
The Usage of Type Hints
|
April 22, 2019, 1:34 p.m. |
+ 1 |
for
Calculated is better than guessed-veky
|
April 22, 2019, 1:33 p.m. |
+ 4 |
for
Not only lists are iterable-tom-tom_f993b3abc4814d4cb5476e
|
April 22, 2019, 1:20 p.m. |
+ 2 |
for
First-mortonfox
|
April 20, 2019, 7:54 p.m. |
+ 1 |
for
accumulate-quarkov
|
April 20, 2019, 7:53 p.m. |
+ 1 |
for
map is not the TypeErritory-veky
|
April 20, 2019, 10:29 a.m. |
+ 1 |
for Comment
veky: It's a fine solution for small enough inputs. Of course, for bigger inputs, you'll have to deal with...
|
April 19, 2019, 9:47 p.m. |
+ 3 |
for
Food for pigs-Nep
|
April 19, 2019, 9:35 p.m. |
+ 3 |
for
First-Chocolater
|
April 19, 2019, 12:59 a.m. |
+ 2 |
for
import statistics; return statistics.median(data) (1 minute in google)-Denis_Gerashchenko
|
April 19, 2019, 12:59 a.m. |
+ 2 |
for
Don't reinvent the wheel-byronboulton
|
April 18, 2019, 1:03 p.m. |
+ 1 |
for Comment
lulufox2727: Looks simple enough to actually read and understand:) (I'm a beginner trying to find clever approach...
|
April 18, 2019, 12:48 p.m. |
+ 1 |
for Comment
mpohily: Some builtin functions are closed here: import, eval, exec, globals
|
April 17, 2019, 1:05 p.m. |
+ 2 |
for
Rename and reuse-veky
|
April 17, 2019, 1:04 p.m. |
+ 3 |
for
Third-jktujgxtu
|
April 16, 2019, 8:45 p.m. |
+ 1 |
for
First-kurosawa4434
|
April 16, 2019, 8:30 p.m. |
+ 1 |
for
Second-colinmcnicholl
|
April 16, 2019, 8:28 p.m. |
+ 1 |
for
concatenation of lists-Olpag
|
April 16, 2019, 8:25 p.m. |
+ 1 |
for Task
Xs and Os Referee
|
April 15, 2019, 3:27 p.m. |
+ 3 |
for
Duh-StefanPochmann
|
April 15, 2019, 12:40 a.m. |
+ 2 |
for
iter-blabaster
|
April 15, 2019, 12:40 a.m. |
+ 1 |
for Comment
spoty: :))) Thanks for thoughtful introspection! These underscores, if you really don't need them, add unne...
|
April 15, 2019, 12:40 a.m. |
+ 1 |
for Comment
veky: This is just one of many examples of how automatic Python linters do more harm than good.
|
April 15, 2019, 12:32 a.m. |
+ 2 |
for
split and slice-yoichi
|
April 15, 2019, 12:31 a.m. |
+ 1 |
for
Easy one-liner with RegExp-RomanTT
|
April 15, 2019, 12:31 a.m. |
+ 2 |
for
split-Sim0000
|
April 14, 2019, 2:59 a.m. |
+ 3 |
for
One-liner with 'set' func-RomanTT
|
April 14, 2019, 2:59 a.m. |
+ 3 |
for
ready_set_go-Tical_1000
|
April 14, 2019, 2:58 a.m. |
+ 1 |
for
Comparing the count of distinctive characters-zaviskapavel
|
April 14, 2019, 2:54 a.m. |
+ 3 |
for
str.maketrans-flpo
|
April 14, 2019, 2:05 a.m. |
+ 2 |
for
Folds and short-circuiting binops-ale1ster
|
April 14, 2019, 2:01 a.m. |
+ 2 |
for
Both-veky
|