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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ah yes, I see what you mean about the performance issues. While it works fine with the simple examples in this kata, it would not scale well.
Thank you for sharing your thought on this!
Are there issues with this solution that prevent it from being more highly rated as best practice? To me, this is the simplest and easiest to read.
My comment/solution was silly, impractical, and not in the spirit of the Kumite you created, so no need to apologise or thank me :D
Hi seraph776. I made the
def happy_pi(birthday): return True
suggestion solution mostly in jest, but some people might consider it a valid solution.If we assume a valid input (a valid date; not "foo") and that the irrational number pi has infinite decimal places, then it could be argued that any 6-8 digit number will appear in pi. At the very least, it would be difficult to prove that the 6-8 digit number does not appear in pi.
If the input is assumed to be valid and pi is assumed to have an infinite number of decimal places, then the following could be assumed to suffice for the "is my birthday in pi?" question:
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution