12
Last seen 8 years ago
Member for 10 years, 7 months, 29 days
Difficulty Normal
wow, why do you write always one-liners? is it just for fun or the challenge or is there another reason?
funny, that this is possible... completely unreadable by normals like me.
More
for x,y in d: a,u,v=a+x*v-y*u,x,y
clever, clever!
i had to look twice to get it. nice :)
More
i thought this algorithm was quite nice.
after having read guidos post i'm feeling kind of stupid aside him.
thumbs up nevertheless
More
i wanted to avoid the init of res = 1, so i found the functools.reduce. but now i see that your code i so much readable. thumps up!
More
great! i just changed my solution. i had the same idea that you had, but mine was not as clear. thanks!
More
phew, i had to think about this solution... wow.
does _n//10_ automatically decrease _n_?
More
at first i didn't even see the differences to the first attempt. I had to look at the first again and there in the comments i saw what you changed.
subtle but nice to know where to make those changes.
edit: do you and veky know each other?
More
i don't get it. where are the possible paths compared to each other?
to my untrained eye it seems like the last valid path is chosen.
minSize = 1000
bestPath = 0
for i in range(len(possiblePath)):
if len(possiblePath[i]) < minSize and len(possiblePath[i])
More
i really liked the __repr__. wanted something like this and didn't succeed... type(self).__name__ good thinking
More
very nice! so simple... i used two methods and itertools. i really laughed out loud when i saw this :)
More