Ad
  • 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

    Hello, I'm stumped. I'm coding in ruby and it passess all the tests but when I try to submit it always fails on the last test.
    The fail message is: Expected: "", instead got: ............a very long string........

    But I can't see why it expects "" since the k number is less than the array size but greater than zero.

  • Custom User Avatar

    I'm getting the exact same problem as well. And I can't figure out why.

    Edit: Ended up looking at the solutions - I had overcomplicated my code so there were too many calculations being made when the answer was much simpler.