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.
Если не является простым, то как раз и должно быть
False
, ещё раз почитайте условие задания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.
That is now the 3rd KATA, where my Code works in VS, but in CW some tests fail. My code is in c#. With the same numbers, I get differents results in VS and CW!!!!
C#
What language do you use?
Yes, I copied it (The_stealth-warrior)
But are you sure that you test exactly the same input? What input value is it, for example?
Yes (ctrl a, ctrl c, ctrl v) it is the same!
Did you check in VS Code the same string which makes you fail on CW?
My code passes all the tests, but with the attempt, I get a IndexOutOfRangeError. Copied to VS Code it works. Why?