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.
This was a little trickie when trying to parse the empty string, therefor I added the "len" function to see if it was empty.
Ah I see. Thank you. I thought that, as the initials array was origninally setup(dont know the right terminology) to have four indexes, I had to make sure that both were addressed.
I'm not sure why exactly, but modifying
initials[4]
causes this. You shouldn't be modifying data out of bounds :PThis was one of the easiest katas ever for JavaScript. It took me one secod
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In what language?
Knowing your code would also help to find problems in your solution.
This solution is wrong for two reasons:
Can you show the code which you think is correct, but does not pass tests, in a readable way, using code formatting?
Can you show the code which you think is correct, but does not pass tests?
So it doesn't work :P But you're not exactly telling what doesn't work, so we can't really help...
See https://docs.codewars.com/training/troubleshooting
Strange task, I decided to do it in my visual studio, checked it, everything works and gives the correct values, I upload it here, it doesn’t work here
You are not supposed to have the
main
at all in your code. See this paragraph for some explanation.It is not a kata issue, your code has some things it should not have.
c++ issue;
I keep getting errors about main's type conflicting, code works fine on my machine (g++ 13.2.0).
I did it with javascript and the answer is correct, the test results are correct but why...
Loading more items...