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.
And that's why you use CodeWars.
This is no longer needed for python 3
This comment is hidden because it contains spoiler information about the solution
shorter than mine!
In the real world, you'd be right. But considering the description, checking against the string type is enough. You implemented something different, actually.
Memoization is the way to have top efficiency ;)
LOL! I did similar with a dictionary [(x,y)] to pass values over 5000 or else my solution timed out. But you took it to next level!
I tried that exact code but it failed I dunno if they have changed it since your sumbission or if i made a mistake, so I passed with a recursion type loop
Loving the practice crosstraining with Python, Haskell, and Clojure. Looking forward to Ruby when I hit the wall with the others. Any idea when Elixir katas will come online? The langauge selection appears to be a mix of "popular" and/or "hip" as priority. C# and Java as mainstream. Ruby, Python, Coffee, Clojure, and Haskell as hip. Javascript as both. Elixir is up-and-coming a few years behind Clojure. Any idea how much demand is there to include it?