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.
..I suppose the example solution wasn't strong enough?
Well, this kumite was written a few years ago in spite of being published recently..
Alright, thanks!
Resolved, then?
Yeah, you're right. It's not worth it. I have moved the validation function to the main test cases and used fixed values for the sample tests.
Lemme know if there are still changes you want me to do.
Sorry, I forgot that in JS function declarations are just like let and it's replacable.
Can you review my fork below and see if it fixed the issue?
https://www.codewars.com/kumite/664e1f1d76e41e8754d7ee6b?sel=664e55a2420d247adc3139e6
I don't understand - the validate code shows how the user’s solution will be validated, but it doesn't contain any solution itself.
Also, why doesn't the same issue occur in the Python version?
random_between
is inclusive of the upper bound. The solution I had to calculate the nth value of the sequence is 1-based, but I used 0-based indices in the assertion messages to match the other languages. Prolog hasnth0
for 0-based indexing andnth1
for 1-based indexing, people just use whatever's convenient for the current program.Since there are no performance limitations, you can brute force this Kata without realizing the pattern at all; it seems this is what most solvers including myself have done, since the Kata info and the tests don't provide an incentive to figure out the puzzle.
If you like. The reference solution for the random tests is the same logic as my JS solution if that's any easier to read. The test cases are just a random integer, so there's not many places for it to go wrong.
I will mention how the serialization works in the description
Thank you for the feedback, Node is specified in the input box. I'll consider adding it to the description.
Approved by someone
Well, i been thinking the same thing. Ok.
ok i will fix it soon
Hello, did you have any chance to look at it yet?
Loading more items...