Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
htamas: "#" is the comment marker in python. You are not allowed to use it to avoid this kind of solution: c...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
cmuchar: Interactive book < Welcome to Problem Solving with Algorithms and Data Structures > is also interest...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
CyroAvernus: The findall looks a bit cryptic to me....I was pretty sure bryukh would solve the whole thing in a f...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
hanpari: Show Yourself, Smart Ass! :)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
nickie: You're right but reviews are blind. When you review you don't know whose solution you're reviewing, ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
nickie: Your implementation of the GCD takes time proportional to the smallest of the two numbers. There is ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: What do you mean "shouldn't"? Since there are so many people here obsessed with performance, I usual...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
floord: I also only recently started playing around with Python and I find learnpythonthehardway.org (you'll...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
benjamin.e.rand: Think python is a really good book when it comes to learning the syntax of Python. It goes through a...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
benjamin.e.rand: The best physical thing Ive used for programming, in was to just to your thought down and think thin...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
ina.pop: It's supposed to be supported according to : http://www.checkio.org/wiki/Modules/SupportedModulesFor...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
WpoZoo: I think that is a good book,though it use the C++ language.
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
suwanditan: Hai, Thank you for your feedback. I aware of this problem since one user ([DoctorProk](http://www.ch...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
zaneli: Hello. I noticed a little mistake, and [fixed it](http://www.checkio.org/mission/x-o-referee/publica...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
nickie: In comparison with other simpler solutions, this one takes the pessimistic approach. It tries to fin...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Sim0000: Thank you very much. Of course, I have experience with programming languages such as C and Java. P...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
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 |
for Comment
veky: > Cool. Do you have some public repos? What kind of code you wrote for production? Unfortunately, no...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
arcolife: oh alright. I've had a different perception of these kinds of statements till date. Thanks for clari...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
VladdlaV13: You can import math or itertools or sys - anything you need. I hope I understand you correctly
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Just google how to define string in python. There are 4 ways :)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Zanzacar: I didn't know what python was until I stumbled upon it after getting very frustrated trying to scrip...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Paltalan: Some rational numbers have a repeating decimal period that is longer than 6, for example 1/17... and...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: PP doesn't appeal that much to me (probably because I have no idea how to actually _use_ both sides ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Juge_Ti: Yes, of course !
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
htamas: Tip: If you indent your code with four spaces, line endings will be preserved and your code will be ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
rupadhya: The two free books @ http://inventwithpython.com/ are interesting. One of them has the full implemen...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Juge_Ti: It took me some time, but here's a solution (it just popped into my mind) : ''' ' s == ]1-::[s :s ad...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
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 |
for Comment
oduvan: I agree that community can say(suggest) which is the better category for this solution, but author s...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
ciel: YesL It is more fan ^^
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: “The determined Real Programmer can write FORTRAN programs in any language.” — [Ed Post, 1982](http:...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
ciel: Right... Actually I have translated C++ (lower\_bound) into Python (bisect.bisect\_left) and Ruby (R...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: Ok, perhaps it's not what you expected but it's a correct solution, isn't it? :) I agree that the as...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
vakninir: Well it can be a lot of things - as already stated by others - Go, Chess, Checkers... but - that is ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
VladdlaV13: You give an advice to the peter parada about itertools.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Sim0000: Oh, I'm quite new in Python (one week Python coder). So, I don't know any about set. Do you have any...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: You only know Python for two weeks and completed all tasks on CheckiO? Wow, that's quite an achievem...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
hanpari: Never for you :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: If you look at the comments, you'll see it's still too slow for many people. Or it uses too much mem...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
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 |
for Comment
Paltalan: arg ! You're right ! My priority is south then east... (because i want to go down and right to the e...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
sweeneytodd94: Ah of course! Thank you, I'm sure this site is mainly improving my awful maths!
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: The most amazing thing is that someone dared to consider it _too long_. :-DD
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Zanzacar: It really wasn't that honest of a solution to the problem. It was for the Roman Numerals task. I tho...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
floord: Thank you for reporting this bug!
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
oduvan: it is a usability bug :) You should click on blinking button on map before station name. PS: New UI ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
PavloTaiko: Your kungfu is better then mine kungfu.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: Oculus Rift would be great! :D
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
floord: I had to google that. Great choice ;)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: And what about a Leap Motion? :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
lllz: Leap Motion is too raw now. We played with it in the office and it's more of a fun for 10 minutes, w...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: I'm agree with you. I think a Kinect is a better toy than the leap motion but I already have one... ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
oduvan: Leap Motion will be raw until it get enough interesting games for this device :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
benjamin.e.rand: dozens and dozens, then hook them all up and make skynet!
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: I see that you already have solve the open labyrinth. I think you can solve this task using the same...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: You can solve that task with the Dijkstra, A* algorithm. Take a look at it :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
SandeepShelke: Amachua, Dijkstra, A* - this is something I avoided all my college days. But alas destiny needs me t...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
benjamin.e.rand: How about a raspberry pi.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
PositronicLlama: Nicely documented! I would recommend using PEP8 naming conventions (lower case variables and functio...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: I, same as many people, like the acknowledgement that what I do is nice in some way, and somebody li...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
floord: Maybe it's UI. But I guess a large part is also behavior driven. We can work on a culture where givi...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: I don't consider others' code "perfect" often. But when I do, I surely give as many thumbs as I can....
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: No. That is a frequent misunderstanding of "and" and "or", that they return bool values only. They d...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: Of course. With 10\*\*10\*\*100, now we're onto something. :-P :-D But seriously, how hard it is to ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: BTW I'm still waiting on this. ;-)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Pteryx: Sorry, now I see that this is not a reason for minus vote, I am new here. Many people did it this wa...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
qria: The line you didn't understand is exactly identical to this line from 20th line of your code: time_m...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: I can't promise anything. :-] (Yes, I know, nor can you.:)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: I learned not to expect anything from you. We are simply too different. :-)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: So that min and max don't raise ValueError when called on an empty sequence. In newer Pythons you ca...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
qria: I'm not much of a python pro myself, but here's my humble suggestions. I hope this will somehow help...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: I don't know why. "Know the rules before you break them" is my motto. ;-)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
kvas: > Also, see "Always use a def statement instead of an assignment statement that binds a lambda expre...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Cjkjvfnby: I put same to puzzle :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: How much awesome converted to thumbs? :-)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: For people with a low complexity class obsession (you know who you are;).
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: For me, it's other way around: "why use def when you can use lambda?". :-]] Namely, you can use def ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: The behaviour you described is related to how multicall tasks work. We are given a fresh python envi...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: You're right that we only have to avoid the dumb ghost. But the ghost whose steps I described above ...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Amachua: I think that for every solution we can control the ghost in a way that we lose. What's matters is th...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
poik: never mind.. i found what i was doing wrong!
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Cjkjvfnby: In programming I assume shorter is not less text, but less actions.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: Indeed. By the way, this is not a purely theoretical exercise. I posted the challenge because it too...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
htamas: Next question: what does [lambda i=i: i for i in 'ab'][0]() evaluate to?
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
nickie: I think we have more or less the same solution, except for the use of "cycle" and the fact that I'm ...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
veky: That category was probably added only because of me. :-]
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Cjkjvfnby: category changes everything :)
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
dorothyhs: I did It!!!!
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
floord: For our PyLadies beginner workshops in Vienna we use [Learn Python the Hard Way, by Zed Shaw](http:/...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Amachua: I recommend "Multiple View Geometry in Computer Vision". For me, it was really a great book for the ...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
htamas: No, you didn't skip "listify" in the docs, I just sneaked it in as a lambda expression in line 2. I ...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
htamas: Like this? from functools import lru_cache listify = lambda f: lambda *x: list(f(*x)) @lru_cache() @...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
dorothyhs: Oh, I see you want first in the alphabet. On Sat, Nov 2, 2013 at 2:10 PM, Dorothy Sanchez wrote: > I...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
dorothyhs: I did not say the problem was solved. I said I see the problem. But I am working on it. Thanks!
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
GaulFries: i used http://www.pythontutor.com/visualize.html#mode=edit to watch the step-by-step operation. I ha...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You select wrong category.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You select wrong category.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Amachua: Not exactly the same way. You made some useless checks: - line 10 and 13 you check it 3 times (itera...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Amachua: Ok, I just add it :)
|