April 3, 2024, 7:22 p.m. |
+ 1 |
for Comment
wo.tomasz: Instead of adding a complicated condition inside the loop, you can set -1 at the end of the list. It...
|
Jan. 17, 2024, 3:49 p.m. |
+ 1 |
for Comment
_D_: Nice
|
Aug. 21, 2023, 6:51 p.m. |
+ 3 |
for
template-veky
|
Aug. 9, 2023, 5:28 p.m. |
+ 1 |
for Comment
oduvan: @tom-tom Can you please stop populating russian war propaganda on this site https://www.stopfake.org...
|
Aug. 9, 2023, 5:25 p.m. |
+ 1 |
for Comment
Selindian: I wish you all the best. Today my home town started a truck to the Ukraine to deliver some needed go...
|
Aug. 9, 2023, 5:25 p.m. |
+ 1 |
for Comment
Vykers: I'm from Russia. It's a disgrace. Be safe.
|
Aug. 9, 2023, 5:22 p.m. |
+ 1 |
for Comment
drednout: Hi! Your solution is pretty interesting and short. However, it's readability may be improved a littl...
|
July 22, 2023, 6:24 p.m. |
+ 1 |
for Comment
dig: Both ;)
|
July 12, 2023, 3:11 p.m. |
+ 1 |
for Comment
Kolia951: Yes, I solved it already. When you calculates total income for all working years **(salary * 12 * wo...
|
July 11, 2023, 3:02 p.m. |
+ 1 |
for Comment
Kolia951: Tough solution! I propose to enhance this way: you can add to the list `j` only True results and in ...
|
July 10, 2023, 5:52 p.m. |
+ 5 |
for
Regex will kill me-Kolia951
|
June 12, 2023, 7:41 p.m. |
+ 1 |
for Comment
Pavellver: I like this solution, it is very impressive!
|
June 5, 2023, 4:51 p.m. |
+ 1 |
for Comment
lxf42: While this code works perfectly well, you should take care with adding a 2nd unneeded check (the sec...
|
May 30, 2023, 9:44 p.m. |
+ 1 |
for Comment
Olpag: can be shorter return len(password) > 6
|
May 29, 2023, 9:45 p.m. |
+ 1 |
for Comment
Ivan_Malashenko: Instead of using list for figure and than sum of it, use 0 and add all figures to it. it will save m...
|
May 26, 2023, 1:09 p.m. |
+ 1 |
for Comment
coenensamy: Using the all function together with the native boolean types would be more scalable, not that it ma...
|
April 5, 2023, 4:13 p.m. |
+ 1 |
for Comment
kdim: brackets [] can be omitted in sum: sum(VALUES[s] for s in word)
|
April 5, 2023, 4:13 p.m. |
+ 1 |
for Comment
McBMcB: Really clear!
|
March 27, 2023, 5:32 p.m. |
+ 1 |
for Comment
H0r4c3: Nice solution!
|
March 21, 2023, 2:14 p.m. |
+ 1 |
for Comment
Kolia951: I would recommend to use more understandable names instead of x,y otherwise it is hard to understand...
|
March 12, 2023, 7:24 p.m. |
+ 1 |
for Comment
Nocturne13: I suppose you are a big fan of Big bang theory))
|
March 10, 2023, 4:08 p.m. |
+ 1 |
for Comment
matthewwdaly: I suppose this works, but it is dreadfully inefficient. If the duration were years or even hundreds ...
|
March 1, 2023, 6:56 p.m. |
+ 1 |
for Comment
hkgok1: Excellent! Very simple and accurate, I like usage of find
|
Feb. 17, 2023, 3:43 p.m. |
+ 1 |
for Comment
veky: > Can I use functools module in python 3? What makes you think you can't?
|
Feb. 17, 2023, 3:43 p.m. |
+ 1 |
for Comment
veky: If you like my solutions, you should probably read my comments too, since there is a high probabilit...
|
Feb. 16, 2023, 8:39 p.m. |
+ 1 |
for Comment
dig: You could have done it with one loop and don't need "continue". However, it is very clear ;)
|
Feb. 12, 2023, 2:49 p.m. |
+ 1 |
for Comment
Kolia951: Rows 2-3 are very interesting! Did you not found a solution for this pair?
|
Feb. 10, 2023, 3:38 p.m. |
+ 1 |
for Comment
Kolia951: It is interesting that OpenAI is founded by Ilon Mask!
|
Feb. 9, 2023, 7:30 p.m. |
+ 5 |
for
First (='ω'=)-Magu
|
Feb. 9, 2023, 7:26 p.m. |
+ 1 |
for
7 Missions of Calculator Series, Solving Puzles Fast and Tranding ChatGPT
|
Feb. 7, 2023, 3:59 p.m. |
+ 1 |
for Comment
robertabegg: Slick :) I think it is O(n**2) though and O(n) is possible.
|
Feb. 2, 2023, 2:58 p.m. |
+ 1 |
for Comment
lisovsky: Look at this solution for ideas: sum([op(int(bit * second.bit_length(), 2), second) for bit in bin(f...
|
Feb. 1, 2023, 3:45 p.m. |
+ 1 |
for Comment
Kolia951: This is a popular approach to use brute force to solve the mission =) I did the same!
|
Jan. 30, 2023, 6:43 p.m. |
+ 5 |
for
dancetime dance revolution-veky
|
Jan. 30, 2023, 6:41 p.m. |
+ 5 |
for
If I had a hammer...-veky
|
Jan. 27, 2023, 11:08 p.m. |
+ 1 |
for Comment
lisovsky: and you can solve this problem like this: result[key] = result.get(key, 0) + value or int() is zero ...
|
Jan. 26, 2023, 4:10 p.m. |
+ 1 |
for Comment
Kolia951: Smart approach to using zip() here
|
Jan. 25, 2023, 6:02 p.m. |
+ 4 |
for
For loop comparing previous values-kkkkk
|
Jan. 25, 2023, 1:01 a.m. |
+ 1 |
for Comment
viktor.chyrkin: Thanks
|
Jan. 25, 2023, 1 a.m. |
+ 5 |
for
1-liner-viktor.chyrkin
|
Jan. 25, 2023, 12:59 a.m. |
+ 1 |
for Comment
viktor.chyrkin: Nice
|
Jan. 24, 2023, 10:48 p.m. |
+ 5 |
for
1-liner: pancake-przemyslaw.daniel
|
Jan. 24, 2023, 10:48 p.m. |
+ 5 |
for
6-liner: recursive-przemyslaw.daniel
|
Jan. 23, 2023, 5:06 p.m. |
+ 1 |
for Task
Sort by Removing
|
Jan. 23, 2023, 3:58 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: no, these are 3 independent solution
|
Jan. 22, 2023, 11:11 p.m. |
+ 5 |
for
Second-viktor.chyrkin
|
Jan. 22, 2023, 11:09 p.m. |
+ 5 |
for
First-yoichi
|
Jan. 18, 2023, 7:17 p.m. |
+ 3 |
for
one liner-viktor.chyrkin
|
Jan. 17, 2023, 11:52 p.m. |
+ 1 |
for Task
Not in Order
|
Jan. 17, 2023, 9:33 p.m. |
+ 1 |
for Comment
veky: > Because membership operators always evaluate to a Boolean value, Python considers them Boolean ope...
|
Jan. 17, 2023, 9:25 p.m. |
+ 1 |
for Comment
Tahnan: But why "in (0, 1)" rather than (the IMHO much clearer) return len(set(elements)) <= 1 ?
|
Jan. 17, 2023, 4:17 p.m. |
+ 1 |
for Comment
Phil15: `'aa'=='a'*2` and `'bbb'=='b'*3` are both repeating themselves but `'bbb'` is longer than `'aa'`. `'...
|
Jan. 15, 2023, 8:50 p.m. |
+ 1 |
for
[Hint #1 for Long Non Repeat (English - doppelok)] (Version: 1)
|
Jan. 8, 2023, 11:53 p.m. |
+ 1 |
for Comment
lisovsky: You can write even easier: max(args, default=0) - min(args, default=0)
|
Dec. 24, 2022, 12:07 a.m. |
+ 5 |
for
There must be a better way-jakubbortlik
|
Dec. 24, 2022, 12:04 a.m. |
+ 1 |
for Comment
jakubbortlik: This is brilliant! I knew there must be such a clean way to do it, that's why I called my own messy ...
|
Nov. 27, 2022, 8:30 p.m. |
+ 1 |
for Comment
saitama-1: "return -1 if n > len(array) - 1 " is easier to understand than "len(array) < n + 1"
|
Nov. 15, 2022, 4:15 p.m. |
+ 1 |
for Comment
hbczmxy: To be honest, _your code is not very readable_. If you could **add some *explanatory comments* to yo...
|
Nov. 13, 2022, 8:25 p.m. |
+ 1 |
for Comment
MarHar: Nice! This is a clear, straightforward solution. My only suggestion would be for you to add comments...
|
Nov. 2, 2022, 4:46 p.m. |
+ 5 |
for
1 line, clear math-kdim
|
Nov. 1, 2022, 8 p.m. |
+ 1 |
for Comment
U.V: Elegant solution with using filter and list comprehension
|
Oct. 31, 2022, 4:28 p.m. |
+ 1 |
for Comment
josip997: Clear. Good job.
|
Oct. 26, 2022, 6:40 p.m. |
+ 4 |
for
for else-veky
|
Oct. 17, 2022, 9:19 p.m. |
+ 1 |
for Comment
amandel: Conceptually simple and natural. The test whether words contains a repetition should be moved to the...
|
Oct. 14, 2022, 6:02 p.m. |
+ 5 |
for
n,i,t picking-veky
|
Oct. 14, 2022, 5:59 p.m. |
+ 5 |
for
classic-kdim
|
Oct. 13, 2022, 3:04 p.m. |
+ 1 |
for Comment
PosTerrieur: SHEEESSHHHHH one line challenge <333
|
Sept. 16, 2022, 4:05 p.m. |
+ 1 |
for Comment
Red_Ale: Thanks ;)
|
Sept. 14, 2022, 3:39 p.m. |
+ 5 |
for
First-Red_Ale
|
Sept. 14, 2022, 3:39 p.m. |
+ 5 |
for
Beginner's Solution-Selindian
|
Sept. 14, 2022, 3:39 p.m. |
+ 4 |
for
Solution by Counter-slchangtw
|
Sept. 14, 2022, 3:38 p.m. |
+ 5 |
for
Clear Explanation for Counting Letters in Text-mithilkotak
|
Sept. 12, 2022, 5:21 p.m. |
+ 1 |
for Comment
kdim: Good! :)
|
Aug. 29, 2022, 4:13 p.m. |
+ 1 |
for Comment
Kverde: perhaps for unification it's good to use one approach for type checking (functions type and isinstan...
|
Aug. 22, 2022, 6:36 p.m. |
+ 1 |
for Comment
Aleksandr_Komarov: Hi! Interesting method to get absolute number of days.
|
Aug. 20, 2022, 9:55 p.m. |
+ 1 |
for Comment
Selindian: Well, this is an interesting solution. But you have made it more complicated than necessary. Since y...
|
Aug. 18, 2022, 9:57 p.m. |
+ 5 |
for
First-veky
|
Aug. 18, 2022, 9:53 p.m. |
+ 1 |
for Task
Speech Module
|
Aug. 15, 2022, 3:07 p.m. |
+ 1 |
for
Using brute force (list with all opacities) + explanations-H0r4c3
|
Aug. 15, 2022, 3:07 p.m. |
+ 5 |
for
First-brownie57
|
Aug. 15, 2022, 3:06 p.m. |
+ 5 |
for
itertools.count and for loop-Splitter
|
Aug. 14, 2022, 7:13 p.m. |
+ 1 |
for
Using set()-Eric_Meyer
|
Aug. 14, 2022, 7:13 p.m. |
+ 1 |
for
1 in set-pandektis
|
Aug. 14, 2022, 7:13 p.m. |
+ 1 |
for
all-Sim0000
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
all, starmap, eq, zip-flpo
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
zip-flpo
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
all(the_same)-flpo
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
All the Same-Ledorub
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
iter-veky
|
Aug. 14, 2022, 7:12 p.m. |
+ 1 |
for
The same without `all`-Tinus_Trotyl
|
Aug. 7, 2022, 5:16 p.m. |
+ 5 |
for
XOR count-bryukh
|
Aug. 6, 2022, 11:57 p.m. |
+ 5 |
for
First-mortonfox
|
Aug. 6, 2022, 11:56 p.m. |
+ 5 |
for
Another one-thealfest1
|
Aug. 4, 2022, 11:17 p.m. |
+ 5 |
for
First-_Chico__5d82cee4f5234e78a5c65e
|
Aug. 4, 2022, 5:20 p.m. |
+ 5 |
for
Using +-veky
|
Aug. 3, 2022, 6:15 p.m. |
+ 5 |
for
First-mihail.ponomaryov
|
Aug. 3, 2022, 6:15 p.m. |
+ 2 |
for
Dumb-obone
|
Aug. 1, 2022, 9:11 p.m. |
+ 5 |
for
Beginner's solution-Selindian
|
Aug. 1, 2022, 3:47 p.m. |
+ 4 |
for
First-agatosz
|
Aug. 1, 2022, 3:46 p.m. |
+ 5 |
for
First-lovewenwen
|