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.
You are correct. I had this nested in a try/except clause beforehand to catch that error. I took it out when I noticed there wasn't any other 0.0 cases. Should probably put it back in :D
This worked, Thanks!
This comment is hidden because it contains spoiler information about the solution
O(1)...nice
Doesn't work with Python 3 :(
This comment is hidden because it contains spoiler information about the solution
Can't say i've ever done recursion inside list comprehension, inside a lambda function :S
Got to love how Python solves this easily in one line.
This comment is hidden because it contains spoiler information about the solution
Thought recursion was more fun than simple math :D
Please include tests for values that are representive of your internal test data. The values in the data are orders of magnitude higher and timeout upon simple algorithms.
This comment is hidden because it contains spoiler information about the solution
Python set: module provides classes for constructing and manipulating unordered collections of unique elements. Very Nice!
Should specify that you are testing for element nesting AND element length
The tuple as v is subtle! Nice