Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
pythontutor.com
What's your Python visualizer of choice?
This comment is hidden because it contains spoiler information about the solution
The values
0
,[]
,""
,False
andNone
are falsy in a boolean expression, in this caseif new_plan
meanslen(new_plan) != 0
.This is in-place but I am not sure what the time complexity is.
This comment is hidden because it contains spoiler information about the solution
Amazing.
Wow, this submission really tripped me up. I had to use a visualizer to see what was being done. Very clever.
So..when we hit the recursive function, it returns the sum and the sum turns into a key. We are sorting by values, is this turning them into tuples? I'm lost.
Thanks, very readable.
Brilliant. My brute force solution was so hideous in comparison. Timed out and wouldn't accept. This solution is much more concise. I'm learning.
Very readable. I was so close :( . why the need for semi-colons though?
Nice.
Find the area of the shape, seems simple enough.
Very interesting question. I'll have to come back to this.
Loading more items...