Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment LexCavalera: 1 on Cjkjvfnby: use **str.endswith** |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment LexCavalera: 1 on Cjkjvfnby: use **str.endswith** |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: I like article **Python Tips, Tricks, and Hacks** http://www.siafoo.net/article/52. It is very usefu... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I like article **Python Tips, Tricks, and Hacks** http://www.siafoo.net/article/52. It is very usefu... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment lesenv: 1 on Cjkjvfnby: You don't need raw string in regexp, and can skip square braces when use \w You can remove **strippe... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment tihenko: 1 on Cjkjvfnby: try this: checkio({'longest', 'aa', 'a'}) |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment tihenko: 1 on Cjkjvfnby: try this: checkio({'longest', 'aa', 'a'}) |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: I prefer to use 'timeit' module on my local PC to check working time :) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I prefer to use 'timeit' module on my local PC to check working time :) |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment veky: 1 on Cjkjvfnby: Thanks for answer. You rest here from being an enterprise programmer :) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment veky: 1 on Cjkjvfnby: Thanks for answer. You rest here from being an enterprise programmer :) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Cool. Do you have some public repos? What kind of code you wrote for production? I consider lambdas ... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Just google how to define string in python. There are 4 ways :) |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: Just google how to define string in python. There are 4 ways :) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Cool. Do you have some public repos? What kind of code you wrote for production? I consider lambdas ... |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: I use Clean category to post beginner level solutions. For production I will choose that style. I re... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I use Clean category to post beginner level solutions. For production I will choose that style. I re... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: I put same to puzzle :) |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on Cjkjvfnby: I put same to puzzle :) |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Not need to check both isdigit and isalpha, they are opposite. You can specify more exact condition.... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment hanpari: 1 on Cjkjvfnby: Set -1 because **len(array) == 0** PEP8: For sequences, (strings, lists, tuples), use the fact that ... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Don't forget to remove debug prints. |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Common practice to use name **args** for arbitrary argument lists. |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment veky: 1 on Cjkjvfnby: You short as always. |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment veky: 1 on Cjkjvfnby: You short as always. |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I put same to puzzle :) |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: I put same to puzzle :) |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Very complex: zip([game_result[i][0] for i in range(3)], [game_result[i][1] for i in range(3)], [gam... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: In programming I assume shorter is not less text, but less actions. |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment Xanatos: 1 on Cjkjvfnby: PEP8: For sequences, (strings, lists, tuples), use the fact that empty sequences are false. Yes: if ... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment Xanatos: 1 on Cjkjvfnby: PEP8: For sequences, (strings, lists, tuples), use the fact that empty sequences are false. Yes: if ... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment Amachua: 1 on Cjkjvfnby: Real puzzle of this solution is in .items order. Pydocs: CPython implementation detail: Keys and val... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment Amachua: 1 on Cjkjvfnby: Real puzzle of this solution is in .items order. Pydocs: CPython implementation detail: Keys and val... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: category changes everything :) |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: You select wrong category. |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: You select wrong category. |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: In that case generator comprehension is good choice, because map will need user defined function. I ... |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: In that case generator comprehension is good choice, because map will need user defined function. I ... |
Nov. 23, 2017, 1:39 p.m. |
+1 |
Experience for voted comment nickie: 1 on Cjkjvfnby: Code is not well formated, it is hard to read it. **enumerate** has start argument. you can use **it... |
Nov. 23, 2017, 1:39 p.m. |
+5 |
Experience for appreciated comment nickie: 1 on Cjkjvfnby: Code is not well formated, it is hard to read it. **enumerate** has start argument. you can use **it... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: At line 5 you code works correct, but you implement you idea with error. Real name for variable **li... |
Nov. 23, 2017, 1:38 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on Cjkjvfnby: At line 5 you code works correct, but you implement you idea with error. Real name for variable **li... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: About dots in other thread it is same browser. In chrome no dots (version 32.0.1700.107 m). Old oper... |
Nov. 23, 2017, 1:38 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Did you have spoiler tag? |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment freezoo: 1 on Cjkjvfnby: At line 5 you code works correct, but you implement you idea with error. Real name for variable **li... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment freezoo: 1 on Cjkjvfnby: At line 5 you code works correct, but you implement you idea with error. Real name for variable **li... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I like splitting to categories. It help to review code. If you don't know how to categorize you solu... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Did you have spoiler tag? |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: **S**, **V** are bad variable names for python. IMHO reuse **width** and **height** variable as radi... |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: you always use index from enumerate as **row + 1** |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: you always use index from enumerate as **row + 1** |
Nov. 23, 2017, 1:37 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Return **None, None** is good idea. **enumerate** has start argument. I don't sure that docstrings a... |
Nov. 23, 2017, 1:37 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: Return **None, None** is good idea. **enumerate** has start argument. I don't sure that docstrings a... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: use string formating it make code more readable: evalstring = '%s%s%s(%s)' % ("s", "u", "m", data) |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Multiple assignment is syntax sugar. It is good for swap variables. For simple assignment I prefer t... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: same code in more functional style def checkio(data): # python 2 head, tail = data[0], data[1:] # py... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Thank you, I got this feature with multicall. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Just rename function argument no need to add new variable: def checkio(food): #food = number Be cons... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on Cjkjvfnby: Looks like you never forget to put coma between strings in list :) Python parser joins string automa... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Looks like you never forget to put coma between strings in list :) Python parser joins string automa... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Top level post are ordered last first. Second level (answear to top level) ordered new first. Level ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: To check if key in dict allways use **key in d**. **key in d.keys()** is less readable and huge over... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: I think if you replace starts with dict you code will run faster. |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: You can put all 3 cycles to product: for i, j (dj, di) in itertools.product(xrange(N), xrange(N), DI... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: You can use generator expression instead list comprehansion: all(matr[x][y] == matr[x][y+i] for i in... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: * Missed one diagonal * You code handles a lot of exceptions, it is not good. Exceptions are for exc... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment AlexeyIvchenko: 1 on Cjkjvfnby: I want to check if any review I got was useful for me. On solution list I see only vote icon but no ... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment AlexeyIvchenko: 1 on Cjkjvfnby: I want to check if any review I got was useful for me. On solution list I see only vote icon but no ... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: I want to check if any review I got was useful for me. On solution list I see only vote icon but no ... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on Cjkjvfnby: I want to check if any review I got was useful for me. On solution list I see only vote icon but no ... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: It is not problem for me. After publish I browse 10-20 solutions and find everything I missed. |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment AlexeyIvchenko: 1 on Cjkjvfnby: Good code, easy to read and understand. You can join *near_cells*, *can_go* and *possible_moves*, to... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment AlexeyIvchenko: 1 on Cjkjvfnby: Good code, easy to read and understand. You can join *near_cells*, *can_go* and *possible_moves*, to... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment ultras: 1 on Cjkjvfnby: You can sort a,b,c at the begining. This will simplify check and you will not need sort at the end. ... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment ultras: 1 on Cjkjvfnby: You can sort a,b,c at the begining. This will simplify check and you will not need sort at the end. ... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on Cjkjvfnby: you can use .strip('[]') enstead of two replace |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment Juge_Ti: 1 on Cjkjvfnby: you can use .strip('[]') enstead of two replace |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: I don't like string concatination via +, it is to bulky. Format (% or .format) are more readable. Li... |
Nov. 23, 2017, 1:33 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: I don't like string concatination via +, it is to bulky. Format (% or .format) are more readable. Li... |
Nov. 23, 2017, 1:33 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: Some things I dont like: In my timline I see that user(followed by me) comment some topics. But link... |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: В данном случае можно организовать рекурсию без вложенного метода, это будет понятнее. [translate](h... |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment todogzm: 1 on Cjkjvfnby: first condition in line 13 always will be True. |
Nov. 23, 2017, 1:32 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on Cjkjvfnby: You should avoid to use magic numbers, for letter in range(26): if uppercase[letter] in data: checks... |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment oduvan: 1 on Cjkjvfnby: You should avoid to use magic numbers, for letter in range(26): if uppercase[letter] in data: checks... |
Nov. 23, 2017, 1:32 p.m. |
+5 |
Experience for appreciated comment bryukh: 1 on Cjkjvfnby: Then you need to use coinsort instead of Timsort :) |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment bryukh: 1 on Cjkjvfnby: Then you need to use coinsort instead of Timsort :) |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment artemrudenko: 1 on Cjkjvfnby: Just timeit: >>> timeit('1', number=1000000) Out[16]: 0.018496990203857422 >>> timeit('int("1")', nu... |
Nov. 23, 2017, 1:32 p.m. |
+5 |
Experience for appreciated comment artemrudenko: 1 on Cjkjvfnby: Just timeit: >>> timeit('1', number=1000000) Out[16]: 0.018496990203857422 >>> timeit('int("1")', nu... |
Nov. 23, 2017, 1:32 p.m. |
+5 |
Experience for appreciated comment artemrudenko: 1 on Cjkjvfnby: > Maybe you are right, i simply thought that this is not a big difference for this particular task. ... |
Nov. 23, 2017, 1:32 p.m. |
+1 |
Experience for voted comment artemrudenko: 1 on Cjkjvfnby: > Maybe you are right, i simply thought that this is not a big difference for this particular task. ... |
Nov. 21, 2017, 2:25 p.m. |
+2 |
Experience for voted solution keithnull: 2 on First-Cjkjvfnby |
Nov. 14, 2017, 9:52 p.m. |
+3 |
Experience for voted solution lsk45: 3 on __-Cjkjvfnby |
Nov. 1, 2017, 10:33 p.m. |
+2 |
Experience for voted solution lsk45: 2 on __-Cjkjvfnby |
Oct. 31, 2017, 5:56 p.m. |
-1 |
Experience for voted solution mudic: -1 on sorted-Cjkjvfnby |
Oct. 24, 2017, 9:29 a.m. |
+1 |
Experience for voted solution Bizu: 1 on __-Cjkjvfnby |
Oct. 22, 2017, 10:15 p.m. |
+1 |
Experience for voted solution dudas: 1 on __-Cjkjvfnby |
Oct. 16, 2017, 8:45 p.m. |
+3 |
Experience for voted solution nogiveup: 3 on reduce-Cjkjvfnby |
Oct. 5, 2017, 1:09 p.m. |
+3 |
Experience for voted solution jlllk: 3 on sorted-Cjkjvfnby |
Oct. 3, 2017, 12:31 p.m. |
+2 |
Experience for voted solution jlllk: 2 on intersection-Cjkjvfnby |
Oct. 2, 2017, 9:07 p.m. |
+1 |
Experience for voted solution jlllk: 1 on reduce-Cjkjvfnby |