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.
i revamped the tests suite.
While I agree that in production code this case has to be taken care of, here on Codewars you would be unable to solve the kata anyway so just fail seems to be only way out.
Up! The same
being longest isn't the only requirement, it also needs to be in the dictionary and be a subsequence of the string. you're only considering two of those three requirements