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.
You made own sort algoritm>? :D why
Thank you! Is this consider an issue for the codewars community?
Who knows... you can force the update by gaining more honor (complete another kata, upvote the one you completed), and the numbers shown in your profile should become correct.
For honor breakdown refer to this page.
How long does it take to update? and what amount of honor is the correct amount for solving a 4kyu Kata?
CW sometimes doesn't update the numbers correctly. You should have the right number of honor.
Solving a 4kyu Kata gave me 2 of honor and solving a 7kyu Kata also gave me 2 of honor, how come?
I hope you found the solution
null
is not a String object, so you can't use.equals()
.You could also invert the order and use it, "needle" is a String object (it'll work that way).
try to read my comment again anter69, what's wrong with the .equals() anyway? I see now that works with "==" but I thought that to compare strings properly you had to use .equals();
If you could clear that for me, I'd be much appreciated.
That's not js, it is Java. The problem is with
.equals()
. Inverting the order also works.Almost 7000 people solved it in js, but it doesn't work for you. Really?!
Sample tests are too similiar, they all expect 'A B C'!, it would be better if there was at least one different expecting like 'AB C', 'A BC' or even something not using ABC like the real attempt.
Thanks I had a mistake.
Thanks:)
Can see the comment :)
Yes,that's why i am asking how to increment the i value and return to method again?
Loading more items...