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.
OP solved it, closing.
The code above is invalid. Please use markdown formatting when asking questions related to coding.
Also, OP solved it, closing...
I've tested your solution and it passes at 7 seconds interval whilst mine passes at around 1.5 seconds. Not a kata issue, closing...
No, the 2nd sentence implies that recursion is not needed since we have stored the pre-computed result in a specific data structure, and we only need to fetch that data from it upon needing it.
Also, your solution should be using memoization O(1) complexity instead of O(N)
If you write that solution without looking back at the code from the external links, then it is not. Happy coding ! ^^
Your solution has O(N) time complexity. Memoization technique requires O(1) to pass the test.
OP solved it in a quite unique way, closing ^^.
This comment is hidden because it contains spoiler information about the solution
OP solved it, closing.
OP is now a Code-golfer in Python, closing ^^
Memoization / look-up approach is required. The expected time complexity is O(1).
OP solved it, closing
5 years later, CW WIKI has been deprecated, and now we have community-based documented guidelines. A lot is still in progress but it is definitely more comprehensive than the former. Have a good read if you manage to see this message someday when notification gets fixed ! ^^
Not sure where you're referring to, but...
This comment is hidden because it contains spoiler information about the solution
Loading more items...