Ad
  • Custom User Avatar

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

  • Custom User Avatar

    So I'm not sure what's going wrong, because in theory this code should work fine. Normally debugging isn't an issue, but as you can't actually check the weights of the bags for each test, it's proving hard to figure out what's going wrong. Any help or suggestions would be great.

  • Custom User Avatar

    It negates formatting because you forgot a newline before your code. Even better, use fenced code snippets, e.g.

    ```javascript
    your code here
    ```
    

    That being said, this isn't an issue, but a question. You're aware that you return a string, while the kata expects an integer?

  • Custom User Avatar

    Same problem here with JS. Based on the ODD/EVEN requirments. I even noticed that there's a problem in the description itself.

    "WeIrD StRiNg CaSe"
    should be
    "WeIrD StRiNg cAsE"

  • Custom User Avatar

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