10
Pavlo Kovalchuk
Last seen 6 years ago
Member for 10 years, 11 months, 28 days
Difficulty Normal
This is a koan: if you need to return error code you might want to use error handler.
More
e=lambda n,t,s:[n+c for l in t if n==l[0]for c in e(l[1],t-{l,l[::-1]},s-{n})]if s or n>'1'else[n]
it remainds me brainfuck and perl, but looks cool anyway.
More
assert checkio([10,10]) == 0, 'First, with equal weights'
Yeah, you know this tricky package. You done this test well. Be proud of it. Damn I am pretty envying because of that. ^_^
More
Really cool. With generator! Yeah!
PS. len(set(route)) == 8 - oh my, I have totally ugliest solution here. Big shame for me.
More