Ad
  • Custom User Avatar

    I cannot speak to your two previous experiences, but in this case your code does not work for this kata, yet. Notice that your code passes the Sample Tests? That's because it is basically correct. Meanwhile, it times out for the Final Tests because it is not optimized enough to solve all the tests in sufficient time. This then speaks to the fact that your outside environment is not set up identically to test your code with adaquate coverage. It is then most likely also, in your two previous experiences, that your outside environment was caught lacking in a similar fashion. Often, it is as simple as the fact that there are certain edge cases / specific tests which are not present in the outside environment.

  • Custom User Avatar

    What language do you use?

  • Custom User Avatar

    But are you sure that you test exactly the same input? What input value is it, for example?

  • Custom User Avatar

    Did you check in VS Code the same string which makes you fail on CW?