Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment kvas: 1 on bryukh: Sorry, my mistake (i copied wrong line from the description). Already fixed. Thanks. |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: At the CheckiO we have many users, which are not so advanced as you. They are only begin to teach py... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: Could you explain more careful your problem? What is the part is understandable? Try to examine the ... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment vic_123: 1 on bryukh: For this test for some combinations you get the same "lst" and you don't count it if not(lst in out)... |
Nov. 23, 2017, 1:36 p.m. |
+5 |
Experience for appreciated comment vic_123: 1 on bryukh: For this test for some combinations you get the same "lst" and you don't count it if not(lst in out)... |
Nov. 23, 2017, 1:36 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: I am using PyCharm linter (in 2.7 it's full pep8) and SublimeLint in SublimeText2. But using whitesp... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: I am using PyCharm linter (in 2.7 it's full pep8) and SublimeLint in SublimeText2. But using whitesp... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment DoctorProk: 1 on bryukh: Look, at start real and fake time is "00:00:00" When real time is "00:00:06", fake time is "00:00:08... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: It's really nice solution. It's short, it's readable, it's simple. Little PEP8 and docstring, and it... |
Nov. 23, 2017, 1:36 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: It's really nice solution. It's short, it's readable, it's simple. Little PEP8 and docstring, and it... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: I just had examined "RPN" task just before it and used it here :) It's all laziness. |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: The first nice post from stackoverflow [How to learn](http://stackoverflow.com/a/2759417/767046). Of... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment Miaou: 1 on bryukh: Thanks. We reworked almost all tasks in the map and did for these tasks explanation tests (picture a... |
Nov. 23, 2017, 1:36 p.m. |
+5 |
Experience for appreciated comment Miaou: 1 on bryukh: Thanks. We reworked almost all tasks in the map and did for these tasks explanation tests (picture a... |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: I propose to set Guido's level at 99 :) |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: Thanks. It's the full and interesting answer. |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment AndreyMezin: 1 on bryukh: I added it two hours ago :-) |
Nov. 23, 2017, 1:36 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: Hi, My name is Valentin. I am from Russia, Far East. On this site I have a very long time. I use pyt... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: it's not important. We check only returned by "checkio". |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on bryukh: it's not important. We check only returned by "checkio". |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: I added it two hours ago :-) |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Using time inside your function is not good practice if this is working code, because this can affec... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Similar task was at Euler project, so you can to search solution for this task in Euler disscusions. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: No :) Just type in google "Euler project" and you will get what i mean. |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment cbrunet: 1 on bryukh: Here is discussion about [these exceptions](http://www.checkio.org/forum/post/1273/new-task-periodic... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment cbrunet: 1 on bryukh: Here is discussion about [these exceptions](http://www.checkio.org/forum/post/1273/new-task-periodic... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: For your test in performance you can use python module timeit. It can be maked as decorator, also yo... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Thanks. We reworked almost all tasks in the map and did for these tasks explanation tests (picture a... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Thanks. We reworked almost all tasks in the map and did for these tasks explanation tests (picture a... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: it's the same. python -c "from math import sqrt; print(sqrt(2)); print(2**0.5)" 1.41421356237 1.4142... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: it's the same. python -c "from math import sqrt; print(sqrt(2)); print(2**0.5)" 1.41421356237 1.4142... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Tiktin: 1 on bryukh: Yes, it's the good book. I recommend it, not only for beginer. This book contains many advanced prac... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: If you don't need to restrict scope of functions, better at outside. Because it easy to read and reu... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: If you don't need to restrict scope of functions, better at outside. Because it easy to read and reu... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: If you have little time, i recommend you read the book "The Art of Readable Code". It's contain many... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: If you have little time, i recommend you read the book "The Art of Readable Code". It's contain many... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Dont Repeat Yourself. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: For interpretator is the same. But separate function, if you have two or more call, is more readable... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment fcborel: 1 on bryukh: For list with primitive data types, you can use "[:]". "copy" and "deepcopy" are "swiss knife". Its ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment fcborel: 1 on bryukh: For list with primitive data types, you can use "[:]". "copy" and "deepcopy" are "swiss knife". Its ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: python -m profile file.py it's tool for understanding what, how often and how long called in your pr... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: For list with primitive data types, you can use "[:]". "copy" and "deepcopy" are "swiss knife". Its ... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: For list with primitive data types, you can use "[:]". "copy" and "deepcopy" are "swiss knife". Its ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: Thank you for the interesting comments. |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment DoctorProk: 1 on bryukh: You can use recursion from top to bottom. Or you can calculate small triangles from bottom (dynamic ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment DoctorProk: 1 on bryukh: You can use recursion from top to bottom. Or you can calculate small triangles from bottom (dynamic ... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment oduvan: 1 on bryukh: For me easy to explain it with a code. The simple realization of DFS (or BFS) def checkio(graph): qu... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: For me easy to explain it with a code. The simple realization of DFS (or BFS) def checkio(graph): qu... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Agree with toufalk. Also for most of name conventions UPPERCASE using as constant, so "C" little con... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Agree with toufalk. Also for most of name conventions UPPERCASE using as constant, so "C" little con... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Nice. Some remarks -- too long lines and we don't know French :) |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Nice. Some remarks -- too long lines and we don't know French :) |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Sorry, i didn't want to offend you :) For reviews i use "Random review" feature -- in this mode i do... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Sorry, i didn't want to offend you :) For reviews i use "Random review" feature -- in this mode i do... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Hm, off the top of one's head, if before to return you need to process returning data or if you need... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment Tiktin: 1 on bryukh: it's not important. We check only returned by "checkio". |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment Tiktin: 1 on bryukh: it's not important. We check only returned by "checkio". |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment MasterSergius: 1 on bryukh: offset > step * 3 and offset <= step * 4 This expression can be replaced with: step * 3 < offset <= ... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment MasterSergius: 1 on bryukh: offset > step * 3 and offset <= step * 4 This expression can be replaced with: step * 3 < offset <= ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Little remark. I made all tests for this task and random maze generator, but in my solution i check ... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Little remark. I made all tests for this task and random maze generator, but in my solution i check ... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Yes, it's infinity loop. [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Yes, it's infinity loop. [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1... |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: Sorry, but how are indices can be a float here? He is using "//" for it. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: I see error in your code - look to last string (move()) - You forget about return and checkio return... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: I see error in your code - look to last string (move()) - You forget about return and checkio return... |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: We fixed problem with view post. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: We fixed problem with view post. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Addition. In your code you can get almost infinity loop. Try to check already visited nodes. |
Nov. 23, 2017, 1:35 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Addition. In your code you can get almost infinity loop. Try to check already visited nodes. |
Nov. 23, 2017, 1:35 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: First -- data.count(data[r]) == data.count(i). Second -- For what are you use "else"? Third -- it's ... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: 2/21 = 0,095238095238... repeating part (095238) |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: 2/21 = 0,095238095238... repeating part (095238) |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: I removed branch, as you asked. I left some comments for other developers -- TabError and restrict t... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: I removed branch, as you asked. I left some comments for other developers -- TabError and restrict t... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Oh, it's bad way. As hint -- write already visited nodes. |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Oh, it's bad way. As hint -- write already visited nodes. |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: I think it's bug. I saw your post. change moves(1, 1) to return moves(1, 1) for first. Replace tabs ... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: I think it's bug. I saw your post. change moves(1, 1) to return moves(1, 1) for first. Replace tabs ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: I see error in your code - look to last string (move()) - You forget about return and checkio return... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: I see error in your code - look to last string (move()) - You forget about return and checkio return... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: I don't understand about first definition of "prolonge". What for? |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: I don't understand about first definition of "prolonge". What for? |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment bildja: 1 on bryukh: I use Pycharm - it's not expensive (50$ or 100$). Also i use SublimeText as universal IDE for quick ... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Check 720 -- must be 1476 |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Check 720 -- must be 1476 |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Quickly brytforce way, it's find all factors (not only prime) and use combinations with different le... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Quickly brytforce way, it's find all factors (not only prime) and use combinations with different le... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: I use Pycharm - it's not expensive (50$ or 100$). Also i use SublimeText as universal IDE for quick ... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment username724: 1 on bryukh: Sorry, i am at little travel next few days without notebook. After return - i will look at your code... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment username724: 1 on bryukh: Sorry, i am at little travel next few days without notebook. After return - i will look at your code... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: http://www.python.org/dev/peps/pep-0008/ It is python style guide for code. You can use console chec... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: http://www.python.org/dev/peps/pep-0008/ It is python style guide for code. You can use console chec... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: http://www.checkio.org/profile/user/list/Avaris/ (not "vs" in top you can select "all") And then cli... |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: http://www.checkio.org/profile/user/list/Avaris/ (not "vs" in top you can select "all") And then cli... |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Thank :) Look to Avaris user - he is awesome. |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Thank :) Look to Avaris user - he is awesome. |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Read pep8, please. If break lines and add whitespaces - it will be more readeable. |
Nov. 23, 2017, 1:34 p.m. |
+1 |
Experience for voted comment Bibiche: 1 on bryukh: Read pep8, please. If break lines and add whitespaces - it will be more readeable. |
Nov. 23, 2017, 1:34 p.m. |
+5 |
Experience for appreciated comment Bibiche: 1 on bryukh: Pretty oneliners :) |