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 comment is hidden because it contains spoiler information about the solution
Thank you!
it should be a 8kyu. Anyway, fun enough and thx for it
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
This comment is hidden because it contains spoiler information about the solution
after 2 years
it's so easy for me. I'm very happy to improve my logic in javascript with codewars
Time: 532ms Passed: 99Failed: 1Exit Code: 1
Show All
Test Results:
Random tests
List with 36 items and 9 items per page
1 Test Passed
2 Test Passed
3 Test Passed
4 page_index is returning incorrect value for item_index 27: 2 should equal 3
I don't know what's wrong with the test number 4, I do it with 3.11 python and all results are correct on my machine.
You only manage to do one-level of nesting (the outer-most layer). You should consider using a stack-based or recursive approach
Your code fails for arrays containing subarrays consisting of
null
element.Because
Flat
is a global object, thus storing unnecessary results from previous function calls.It is ok on a beginner level, but then it should have 8 kyu rating if you ask me.
uzbek sila
That's because you're not using the same input value in your machine, try calling your function like this:
toCamelCase("")
and see what happens. It's the first sample test btw.I tried the javaScript one and it works perfectly in my machine but here cannot recogrise the toUpperCase method. what am I doing wrong?
Loading more items...