Ad
  • Custom User Avatar

    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?)

  • Custom User Avatar

    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)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This is still an issue. Just had to "attempt" again to get a random test with a nonempty result and passed the kata.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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".

  • Custom User Avatar

    Same issue here. Passes all tests, but the tab bars me from submitting the final solution.