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.
That's because there's very few tests in C version, so ANY solution will pass there.
That's funny because I'm writing the exact same code in C and it's fast af while it wasn't fast enough in Python.
That's interesting, because it definitely should be enough for this kata, and I checked such solutions and they pass. Maybe your original solution had some other issue?
You don't need to memoize. Solution with proper upper bound will work for this kata without memoization.
not a suggestion...