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 was actually a solution of another similar problem
My appologies if someone has already pointed this out, but I noticed that the tests do not cover cases where two strings are of equal length, many solutions pass because they get "lucky".
Test.assertEquals(LCS("132535365", "123456789"), "12356") // Test Passed: Value == '12356'
Test.assertEquals(LCS("123456789", "132535365"), "12356") // Expected: '12356', instead got: '1356'
This comment is hidden because it contains spoiler information about the solution
I'd love to see someone try this in an interview XD
I would recommend either showing the class definitions or allowing the challengers to create the classes themselves.