Aug. 12, 2018, 8:48 p.m. |
+ 1 |
for Comment
Joelfotboll3: thanks for the help really usefull,but i've heard that for performance its better to use mutable obj...
|
Aug. 4, 2018, 4:06 p.m. |
+ 1 |
for Comment
nakanohito_piyo: Thank you for the comment. Why you think this code is O(n*log(n))? According to [TimeComplexity](htt...
|
Aug. 8, 2015, 12:51 p.m. |
+ 1 |
for Comment
siebenschlaefer: If you want to keep it as short as possible you could write ``sum(a)`` instead of ``a[0]+a[1]``.
|
July 18, 2015, 9 p.m. |
+ 1 |
for Comment
tartavull: beautiful
|
June 15, 2015, 7:56 a.m. |
+ 1 |
for Comment
ewlooney: Nice and clean. Might be slightly better if you used "item" or "number" instead of "i" - since i is ...
|
May 18, 2015, 6:55 a.m. |
+ 1 |
for Comment
JayLee: my updated code: def checkio(data): list = [x for x in data if data.count(x) > 1] return list
|
May 18, 2015, 6:53 a.m. |
+ 1 |
for Comment
JayLee: oh actually I had updated my solution with list comp, but didn't publish as second lol. but yeah you...
|
March 31, 2015, 2:14 p.m. |
+ 1 |
for Comment
bryukh: Yep - 12. But **"Your result: 18"**
|
Feb. 9, 2015, 1:04 p.m. |
+ 1 |
for Comment
suic: Hi, I have two comments: 1. Look at _math.degrees_. 2. On lines 5-7 you have three times the same pa...
|
Feb. 9, 2015, 1:04 p.m. |
+ 1 |
for Comment
suic: One edit: # This would be even better: return len(data) >= 10 and re.search(...) # :)
|
Jan. 31, 2015, 2:33 p.m. |
+ 1 |
for Comment
suic: Hi, you missed a bit the concept of list comprehension: You could write: new = [i for i in data if d...
|
Jan. 20, 2015, 7:35 p.m. |
+ 1 |
for Comment
erik.white.2014: if language == "українська": return "Я люблю Python!"
|
Jan. 17, 2015, 8:57 a.m. |
+ 1 |
for Comment
DavidJones: This is good, I like the indexing, but you should also check out the hint for use of the ord() and c...
|
Jan. 9, 2015, 11:14 a.m. |
+ 1 |
for Comment
cle99y: thanks for the feedback. This was one of my first attempts at Python. Often when I check other solut...
|
Jan. 9, 2015, 11:13 a.m. |
+ 1 |
for Comment
cle99y: the argument passed to the function is a tuple :)
|
Nov. 6, 2014, 9:17 a.m. |
+ 1 |
for Comment
oduvan: In python you can simply say: if v=={}: Does that help?
|
Nov. 6, 2014, 9:17 a.m. |
+ 1 |
for Comment
brlm.franke: for k, v in current.items(): if v == {}: result["/".join((path + (k,)))] = "" elif isinstance(v, dic...
|
Nov. 4, 2014, 6:08 p.m. |
+ 1 |
for Comment
bunnychai: loop through the possible (dx, dy) around (row, col), then check whether (row+dx, col+dy) is within ...
|
Nov. 4, 2014, 2:34 p.m. |
+ 1 |
for Comment
spoty: Because your regex is not correct: check this out: https://www.debuggex.com/r/7cDLoKbRwxJlymCS
|