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.
Thank you! Is this consider an issue for the codewars community?
How long does it take to update? and what amount of honor is the correct amount for solving a 4kyu Kata?
Solving a 4kyu Kata gave me 2 of honor and solving a 7kyu Kata also gave me 2 of honor, how come?
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.
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.
In Javascript, is the parameter not an array? because I'm trying to use numbers[i] and it's not working.
Thank you,
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
your comment helped thank you, sorry for being rude,g964.
taking 209917,
2) the index i of the digit d you took, i as small as possible
smallest number in 209917 => 0 => index= 1
3)the index j (as small as possible) where you insert this digit d to have the smallest number.
result from taking 0, 29917, where can I insert it? at the beginning
029917 => index where inserted=0
result=[29917,1,0]
What am I getting wrong?
if it's i and j as small as possible aren't they supposed to be 0 and 0 everytime because there isn't anything smaller than 0
in Javascript
testing(261235, [126235, 2, 0]);
testing(209917, [29917, 0, 1]);
testing(285365, [238565, 3, 1]);
testing(269045, [26945, 3, 0]);
testing(296837, [239687, 4, 1]);
the ones marked have the result backwards it should be [29917, 1, 0] and same for the others, how is this approved? if it has very noticeable mistakes in it
Thank you! but why doesn't it work by checking like this (arr[i][j]==null) but it does like this arr[i]==null, doesn't it make more sense to check element by element?
Cannot read property '0' of null
I'm probably missing something but I'm checking if(arr[i][j]==null || arr[i][j]==undefined) and I also check if the length is 0, but I still get this error "Cannot read property '0' of null", but it checks green "Test Passed: Value == false" what could the issue be?
Loading more items...