May 21, 2024, 9:20 p.m. |
+ 1 |
for Comment
Selindian: Clever solution. I like it. Thanks for sharing.
|
May 21, 2024, 9:20 p.m. |
+ 1 |
for Comment
Selindian: Thank you for sharing this solution. Nice to learn that python returns the second value of an expres...
|
March 12, 2024, 3:14 p.m. |
+ 1 |
for Comment
kdim: pretty "num>0", otherwise nothing to add
|
Feb. 18, 2024, 10:31 a.m. |
+ 1 |
for Comment
adamspj: Wow, this was mind-bending for me because I'd never before tried using logical "and" and "or" betwee...
|
Jan. 15, 2024, 8:08 p.m. |
+ 1 |
for Comment
arthur.antonoff: Very nice! Great use of x*y for verify when x and y are just in different directions
|
Dec. 28, 2023, 9:06 p.m. |
+ 1 |
for Comment
waffell: You have one mistake, one of the conditions is: "the length should be bigger than 6". If you check a...
|
Dec. 9, 2023, 11:04 a.m. |
+ 1 |
for Comment
Ivan_Malashenko: good solution! it has been taken few minutes to understand how it works.
|
Oct. 6, 2023, 7:45 p.m. |
+ 1 |
for Comment
sergray: There's no need to provide `Counter` a list built with list comprehension. It perfectly operates on ...
|
April 30, 2023, 2:07 p.m. |
+ 1 |
for Comment
vova1238: Using bare excepts (without specifying an exception type) is bad practice and may couse problems lat...
|
April 30, 2023, 11:35 a.m. |
+ 1 |
for Comment
Max0526: Genius! # will stick to integer arithmetic only --> +1. Also, +1 for side2 instead of side almost in...
|
April 26, 2023, 7:54 p.m. |
+ 1 |
for Comment
TheRing: Damn... I didn't know about the builtin bin() function, so I implemented the binary weight calculati...
|
April 26, 2023, 12:37 a.m. |
+ 1 |
for Comment
Max0526: Using **p** instead of function parameter **password**. Genius tip to save space!
|
March 18, 2023, 11:47 a.m. |
+ 1 |
for Comment
egkrivotuloff: for '123456' you should return False, not True
|
Jan. 27, 2023, 9:48 p.m. |
+ 1 |
for Comment
lisovsky: This expression is cool: (name in w and w[name]) and you can solve this problem like this: result[ke...
|
Dec. 31, 2022, 2 p.m. |
+ 1 |
for Comment
kt1729: sorted(values, key = abs) works, although the lambda function works too.
|
Nov. 10, 2022, 7:20 p.m. |
+ 1 |
for Comment
Kolia951: Nice using of fresh function pairwise()!
|
Oct. 2, 2022, 10:55 a.m. |
+ 1 |
for Comment
mithilkotak: Your solution can be turned into a compact one-liner: def sum_digits(num:int)->int:return 0 if not n...
|
Oct. 1, 2022, 8:08 p.m. |
+ 1 |
for Comment
juestr: You could replace the first inline-if too: return num and (num % 9 or 9)
|
Sept. 30, 2022, 10:23 p.m. |
+ 1 |
for Comment
mithilkotak: This is also creative but what if a=[1,4,6] and b=[1,3,6]. I think your function will return 1 where...
|
March 17, 2021, 7:28 p.m. |
+ 1 |
for Comment
Andrz: Nice work. Do not foget to use symbol **r** before template (i.e. r"\w+('\w)?") :)
|