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.
return is ok, but still have a problem with time limit
Your code should not show valid output, but should return a valid result. See this for some help: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#expected-the-same
Your code is very slow, as you can read. Try to speed up him using dynamic programming ( basics of it )
What do you mean? Time limit is reached? Your code is so slow... Try to think different ( basics of dynamic programming will help you xD )
This comment is hidden because it contains spoiler information about the solution
well i figured it.this is bcz of using 2D array in my case ,so i used 1D array now i'm getting 'time out' error
Me too...
i have passed the test but when trying to submit this returns
"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
any solution?