Jan. 31, 2022, 10:51 p.m. |
+ 1 |
for Comment
Alexey.K.: u can use eval() for extract values. just: _a, b, c = eval(data)_
|
Jan. 22, 2022, 10:35 p.m. |
+ 1 |
for Comment
LRohr: Wow...this is so freaking simple! I'm shocked!
|
Jan. 22, 2022, 10:35 p.m. |
+ 1 |
for Comment
done_python_03298990640947358d: nice idea :)
|
Jan. 22, 2022, 10:35 p.m. |
+ 1 |
for Comment
Oleg_Levonjuk: You could abstract common logic in other function, instead of duplicating it.
|
Dec. 13, 2021, 7:58 p.m. |
+ 3 |
for
First-freixodachamorra
|
Dec. 11, 2021, 1:24 p.m. |
+ 1 |
for Comment
anilk89: simple and easy!
|
Dec. 11, 2021, 1:24 p.m. |
+ 1 |
for Comment
KhantKhant: I like the idea !
|
Dec. 11, 2021, 1:24 p.m. |
+ 1 |
for Comment
YingyingShen: Really AMAZING! I used a lot of if and elif to check every situation.
|
Dec. 11, 2021, 1:24 p.m. |
+ 1 |
for Comment
Alex_4444D: Little tip, you can replace the if statement of lines 29 and 30 with: unit_1.health -= unit_2.attack...
|
Nov. 14, 2021, 10:17 a.m. |
+ 1 |
for Comment
xiaogong42: Oh my god,i use 40 lines to solve this problem.
|
Oct. 11, 2021, 6:16 p.m. |
+ 1 |
for Comment
CDG.Axel: You can simply reform this code to one line ) res = 0 for i in range(len(numbers) - 1): srt = sorted...
|
Oct. 7, 2021, 7:47 p.m. |
+ 1 |
for Comment
CDG.Axel: original solutions with recursion! btw it can be replaced with cycle
|
Oct. 7, 2021, 7:46 p.m. |
+ 1 |
for Comment
christopher.s.painter: Well what can i say, i used 5 conditionals and it took around two hours. This is incredible! Kudos!
|
Sept. 13, 2021, 8:53 p.m. |
+ 1 |
for Comment
entreoutros: Nice use of assignment with 'or'.
|
Sept. 3, 2021, 8:04 p.m. |
+ 1 |
for Comment
jsg-inet: Nice and compact solution!
|
Aug. 2, 2021, 5:38 p.m. |
+ 1 |
for Comment
ZHUYINDI: nice
|
Aug. 2, 2021, 5:38 p.m. |
+ 1 |
for Comment
gamer995: brilliant
|
July 3, 2021, 7:12 p.m. |
+ 1 |
for Comment
zigzagwanderer: I like this replacing method.
|
July 3, 2021, 7:12 p.m. |
+ 1 |
for Comment
mindaugas.dadurkevicius: Clear and simple solution. Nonetheless, before posting the solution it would be better to remove ass...
|
July 3, 2021, 7:11 p.m. |
+ 1 |
for Comment
Mycroft0121: clear and simple
|
June 4, 2021, 8:59 p.m. |
+ 1 |
for Comment
chris_m: KISS principle!
|
May 24, 2021, 8:35 p.m. |
+ 1 |
for Comment
DenisKnyazev: Clear and straight. Good.
|
May 22, 2021, 11:48 a.m. |
+ 1 |
for Comment
Sky_J: like this
|
May 22, 2021, 11:47 a.m. |
+ 1 |
for Comment
_Chico__5d82cee4f5234e78a5c65e: Great man!
|
May 22, 2021, 11:47 a.m. |
+ 1 |
for Comment
ahans39: Exactly how I did it
|
May 22, 2021, 11:45 a.m. |
+ 1 |
for Comment
pokryshkin: You can use '_' instead of 'digit' if you don't need it in code. Or I've just missed somthing?
|
May 16, 2021, 8:15 p.m. |
+ 1 |
for Comment
_Chico__5d82cee4f5234e78a5c65e: just great!
|
April 20, 2021, 7:52 p.m. |
+ 1 |
for Comment
juestr: A kind of brute force search with early abort like I did, but with a precomputed set-like list of go...
|
April 20, 2021, 7:51 p.m. |
+ 1 |
for Comment
adqq0659: bruh, so smart
|
April 10, 2021, 7:02 p.m. |
+ 1 |
for Comment
not_real: Yo could try to use `collections.defaultdict(set)` to simplify letters = {} for word in word_list: f...
|
April 8, 2021, 7:15 p.m. |
+ 1 |
for Comment
Tylerflx: same idea. good job
|
April 7, 2021, 8 p.m. |
+ 1 |
for Comment
Oleg_Babaev: Clear!
|
March 27, 2021, 5:35 p.m. |
+ 3 |
for
First-bukebuer
|
March 26, 2021, 9:15 p.m. |
+ 1 |
for Comment
m.kurapov: I think most of the solutions to this task might be similar to your solution.
|
March 20, 2021, 2:09 p.m. |
+ 1 |
for Comment
puaypra1: I Like it!!!
|
March 15, 2021, 5:51 p.m. |
+ 1 |
for Comment
bkaraica: So simple that my head is going to explode. This is as simple as it gets.
|
March 15, 2021, 5:51 p.m. |
+ 1 |
for Comment
marat.m: Very clear and concise. And implicitly solving the "empty string" case and the return of False
|
March 2, 2021, 11:20 a.m. |
+ 1 |
for Comment
python_lsh: I can only say, admire!
|
Feb. 25, 2021, 8:56 a.m. |
+ 1 |
for Comment
NSSEI: The problem says it is "guaranteed not to overlap with each other and to be listed in a sorted ascen...
|
Feb. 22, 2021, 1:29 p.m. |
+ 1 |
for Comment
r_tchaik: Well done!
|
Feb. 20, 2021, 7:57 p.m. |
+ 1 |
for Comment
paligamos: Wow I coded half a page for that :-/
|
Feb. 20, 2021, 7:57 p.m. |
+ 1 |
for Comment
tommyshelby: lol
|
Feb. 16, 2021, 12:25 p.m. |
+ 1 |
for Comment
pandektis: Well I had the same idea, sorting and emptying the set, to minimize loop rounds. I like this for not...
|
Feb. 11, 2021, 8:51 p.m. |
+ 1 |
for Comment
kokopelli: Well, that's super simple!
|
Feb. 11, 2021, 8:50 p.m. |
+ 2 |
for
1 line - dict split strip-kdim
|
Feb. 11, 2021, 8:49 p.m. |
+ 1 |
for Comment
kdim: hard to understand for cookie in [cookie.strip... probably better to use another variable for c in [...
|
Feb. 11, 2021, 8:43 p.m. |
+ 1 |
for Comment
new_hoschi: Beautiful use of lambda functions. Seems to be as short as possible
|
Feb. 1, 2021, 8:39 p.m. |
+ 3 |
for
set of square-Sim0000
|
Feb. 1, 2021, 8:38 p.m. |
+ 2 |
for
sets-David_Jones
|
Feb. 1, 2021, 8:27 p.m. |
+ 1 |
for Comment
lelek_3: just like that??? Nice solution, much better than mine :/
|
Jan. 28, 2021, 9:44 a.m. |
+ 1 |
for Comment
wo.tomasz: nice
|
Jan. 13, 2021, 10:49 a.m. |
+ 1 |
for Comment
alexost66: Very cool and concise solution
|
Jan. 4, 2021, 4:14 p.m. |
+ 1 |
for Comment
thomvar: Is there any functional reason why you add the list(..) part? From what I can see the stuff you retu...
|
Jan. 2, 2021, 8:33 p.m. |
+ 2 |
for
First-juestr
|
Jan. 2, 2021, 8:33 p.m. |
+ 1 |
for
First and Last-obone
|
Jan. 2, 2021, 8:32 p.m. |
+ 1 |
for
First : Probably not the answer the question asks for-keromage
|
Jan. 1, 2021, 8:47 p.m. |
+ 1 |
for Comment
Tsaela: Man, I did it with a conditional statement because I didn't realize the == would return either true ...
|
Dec. 28, 2020, 12:28 p.m. |
+ 1 |
for Comment
Wakko_Warner: no clue what you're doing here 😃 - but it seems to work.
|
Dec. 17, 2020, 9:55 p.m. |
+ 2 |
for
First-eugene100372
|
Dec. 15, 2020, 3:29 p.m. |
+ 1 |
for
weekday() - firstweekday-flpo
|
Dec. 15, 2020, 3:28 p.m. |
+ 1 |
for
7 days-Ilis
|
Dec. 15, 2020, 3:27 p.m. |
+ 2 |
for
First-thisislmmail
|
Dec. 15, 2020, 3:14 p.m. |
+ 1 |
for Comment
PetrStar: Great solution. I liked it. Clear and readable. But You can optimize the solution.
|
Dec. 15, 2020, 3:13 p.m. |
+ 1 |
for Comment
Spiritusvini: It's most ingeniously.
|
Dec. 15, 2020, 3:11 p.m. |
+ 1 |
for Comment
r_tchaik: Well done!
|
Dec. 11, 2020, 8:52 p.m. |
+ 1 |
for Comment
wrlmath: WOW..... Amazing...
|
Dec. 9, 2020, 12:10 p.m. |
+ 2 |
for
First-Sim0000
|
Dec. 9, 2020, 11:57 a.m. |
+ 1 |
for Comment
vvm70: simple and clear
|
Dec. 9, 2020, 11:57 a.m. |
+ 1 |
for Comment
xvx-ctrlz: amazing simple code but sophisticated concept like it
|
Dec. 7, 2020, 9:14 p.m. |
+ 1 |
for Comment
samhuawey: What's this? #assert is_all_upper('') == False
|
Dec. 7, 2020, 9:13 p.m. |
+ 1 |
for Comment
Ammareno: isupper() returns false for spaces,empty strings and numbers at least in the case when I was solving...
|
Dec. 1, 2020, 5:29 p.m. |
+ 1 |
for Comment
PetrStar: you can use '(space)'.join()
|
Nov. 27, 2020, 10:49 a.m. |
+ 1 |
for
Try except-Vealo
|
Nov. 27, 2020, 10:44 a.m. |
+ 1 |
for
First-Anezka88
|
Nov. 27, 2020, 10:40 a.m. |
+ 1 |
for
Simple-Vealo
|
Nov. 25, 2020, 7:49 a.m. |
+ 1 |
for Comment
PetrStar: Good afternoon! For optimization, it would be more logical to first look for the largest piece (from...
|
Nov. 24, 2020, 1:51 p.m. |
+ 1 |
for Comment
Stensen: Yep it does make sense! and of course your approach is very reasoning, But the main issues is that y...
|
Nov. 24, 2020, 7:05 a.m. |
+ 1 |
for
First-ssk8
|
Nov. 24, 2020, 7:04 a.m. |
+ 2 |
for
Datetime date + timedelta-swagg010164
|
Nov. 24, 2020, 7:04 a.m. |
+ 1 |
for
timedelta-furtadobb
|
Nov. 22, 2020, 1:32 p.m. |
+ 2 |
for
len(set(zip))-Fermax
|
Nov. 22, 2020, 1:31 p.m. |
+ 2 |
for
zip-m.kurapov
|
Nov. 22, 2020, 1:31 p.m. |
+ 2 |
for
First-shaggyrobot
|
Nov. 18, 2020, 3:23 p.m. |
+ 1 |
for
First-Panter7777
|
Nov. 18, 2020, 3:22 p.m. |
+ 1 |
for
lambda -pherapont
|
Nov. 18, 2020, 3:19 p.m. |
+ 1 |
for
First-Igor__Lashkevich
|
Nov. 12, 2020, 6 a.m. |
+ 3 |
for
First-tom-tom_f993b3abc4814d4cb5476e
|
Nov. 10, 2020, 4:36 p.m. |
+ 1 |
for Comment
Ulukai85: Clear solution, great! The for-loop with the else and if seems a bit convoluted, though. I wonder, i...
|
Oct. 27, 2020, 2:55 p.m. |
+ 2 |
for
First-colinmcnicholl
|
Oct. 27, 2020, 6:50 a.m. |
+ 1 |
for
Simple-tom-tom_f993b3abc4814d4cb5476e
|
Oct. 27, 2020, 6:49 a.m. |
+ 2 |
for
First-Rcp8jzd
|
Oct. 27, 2020, 6:49 a.m. |
+ 2 |
for
First-yoichi
|
Oct. 27, 2020, 6:47 a.m. |
+ 3 |
for
__lt__-veky
|
Oct. 26, 2020, 8:25 p.m. |
+ 1 |
for Comment
dan_s_5d3f28339a9b4a208a03da32: I have issues with this task. I tryid to find smart solution, but I didn't manage it. Used algorithm...
|
Oct. 26, 2020, 4:57 a.m. |
+ 1 |
for Comment
n2f: nice and clear
|
Oct. 21, 2020, 8:46 a.m. |
+ 3 |
for
Complex coords & Sets-Pouf
|
Oct. 21, 2020, 8:45 a.m. |
+ 1 |
for
"Can You Pass?"-iskenderunbtr
|
Oct. 21, 2020, 8:44 a.m. |
+ 2 |
for
First-flpo
|
Oct. 15, 2020, 8:09 a.m. |
+ 1 |
for
First-shkal
|
Oct. 15, 2020, 8:09 a.m. |
+ 1 |
for
First-larasing83
|