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.
Oh I forgot this rule. Thanks for reminding!
This was a great opportunity to come up with a creative solution!
It’s always interesting to see how others approach the same problem after you’ve solved it.
Thanks for this awesome kata!
very easy kata!
Hint: Just use by simple math formula to count the odd numbers.
C++
It can't be both together. If the function only checks if the array is wave sorted, it shouldn't check if it stays the same.
It's even worse: i've added
at the beginning of my function, and still it returns "The vector content should stay the same". So, my function only runs if the check function fails - and still the vector should stay the same?
This problem can be reduced to the set cover problem, which is NP-hard, looking at size of tests I can assume that reference solution uses some king of greedy approach, which do not guaranty optimal solution.
Example A = [3, 8, 8, 6, 7], B = [2, 2, 3, 5, 6], k = 6. My solution is 3. First thief can take from jars 1 and 4 second from 2, third from 3 and 5
fixed in this fork
Merged
The easiest kyu
done there
approved
js fork
lodash
for randomnessjs fork 🤖🤖🤖
mocha/chai
assertions +lodash
for randomnessCan the password be empty (eg: no 'T' at the end of directions) ? Can
grid
be 1x1 and/or candirections
be empty (thus password would also be empty) ?I'd like to translate the kata and I think these cases could be interesting but I don't know if I should implement them or not. I also think it could be added to the description.
Merged the fork with the fix.
Merged.
Loading more items...