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.
thanks for fix & explain
fixed, thanks
Hello, javascript translation, please review, thanks
test
crazy 4kyu
This comment is hidden because it contains spoiler information about the solution
Added test cases and random one.
Added example test cases.
"Find the majority" is not same, solve in different algorithms.
"What dominates your array?" is same beside the input item type.
submit test wrong:
range(1,5,0) test right answer is [1,1,1,1] (stop - 1) times loop
range(0,2,0) test right answer is [0,0] (stop) times loop
any one can fix it?
Tests wrong, I occurred same issue,
Contradiction.
This is a wrong TAKA! at least it with wrong submit tests. Please update them.
I got it, but when step === 0, stop's defination changed, it's strange. a value changes it's defination depande on other params' value
So easy man, I have a suggestion, return how many turns the fly made, that's sound harder.
This comment is hidden because it contains spoiler information about the solution
I really comfuse with param stop.
As description it mean the interger in array's max value. but in step 0 case like range([1, 4, 0]) return [1, 1, 1] if seems like means the max index of array.
For the first understanding logic, step 0 will never stop, becuz the value of the interger won't touch the max.
If understand 'stop' to max index, case range([1, 11, 1]) return [1, 2, 3, 4 ..., 10], will also wrong.
Is there some misunderstanding for me? or this one has issue?
maybe it show your confidence no way to run there
Loading more items...