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.
Tests are wrong. I got an error saying "AS AD AC AH JD should equal KS AS TS QS JS", which is obviously not the case (4 of a kind should equal royal straight flush in spades?)
My accepted solution is actually wrong -- I accidentally ignored when the unique element is the second in the list. Tests should catch things like this. (To make a test, first choose your array length and then iterate through all possible positions in that array being the unique element)
This comment is hidden because it contains spoiler information about the solution
This is still an issue. Just had to "attempt" again to get a random test with a nonempty result and passed the kata.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I agree, the story is nonsense and should just be replaced with a short problem description like yours: "Given a list ls of positive integers, find the length k sublist with largest sum <= t".
Same issue here. Passes all tests, but the tab bars me from submitting the final solution.