8
Last seen 3 years ago
Member for 8 years, 9 months, 27 days
Difficulty Normal
Is
checkio = Anything()
the same as
def checkio(anything):
return Anything()
?
More
This works?! It looks like this breaks every ring but one. Can you explain the algorithm intuitively?
More
I used the same algorithm, but this is beautifully written. Is it better (pythonic?) to have fewer, longer lines of code than more, shorter lines?
More
I'll be honest - I'm having trouble reading your code. But it does look like you have a lot of loops...
More
Recursion! It came out a little more complicated than my iterative solution, but I always love to see a recursive solution.
More
You're clearly technically proficient, but try to think a little creatively about "what are my obstacles" and "what information do I need to have to overcome those obstacles"?
More
Nice idea unpacking the 2D array. It works here because there's a finite size to the matrix, but it wouldn't work if the game board size were arbitrary. Way to make those loops work for you!
More