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 solution depends on the order of the input arguments
shouldn't be the function and therefore the memoization be indifferent to input order of elements?
I.e., lcs(x,y) == lcs(y,x)
Even though it isn't correct, it is quite a funny hack ;)
Isn't this incorrect?
For lcs('abcdba', 'bcdaba'), it produces 'bcda', but the correct output is 'bcdba'.
This comment is hidden because it contains spoiler information about the solution