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.
That means the sorted hand according to your sorting comparator differs at that spot.
It's far from useful feedback I know.
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?)
I agree with you. I see lots of accepted solutions to be wrong, but thankfully i've done it the right way. :)
Unfortunatelly, test cases for python and javascript is locked. I add this case to other languages and to example test cases in js and python. Thanks for report!
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)
Why? I think you are misunderstanding the Kata. You need to find the number that occurs an odd amount of times, not the maximum amount of times.
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.