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.
Your not on the leaderboard because your terrible
nice point, applying
Thanks for the feedback. Fixed ;-)
There is a security hole, look at my solution :)
0
, BTW, is not positive. You may mean non-negative.Kata is unpublished until i fix some serious issues
reply to read your hidden message
Made clearer, thank you for your feedback
Modified
At first thank you for feedback, i added your questions to rules
Test.assertEquals(fv([ 20, 1 ],[ 70, -55 ],11),0)
tells that fib starts at1,20
then goes to1,20,21,41,...
but it doesnt matter because array length is2
so first pair1,20
is out of range so you shouldreturn 0
And well as I'm looking for second input something went wrong and i'm gonna rewrite that a little, second input in wrong.
Also I'll modify test cases.
Rules are unclear. So, I(or we?) have lot of questions:
What's the tuple? Do you mean each pair of two adjacent fib number? like (0,1),(1,2),(3,5)... right?
So, the kata asks to sum the elements between each pair of (0,1),(1,2),(3,5)...? For (3,5), we should calculate arr[3]+arr[4]+arr[5], right?
If a pair (a,b), a < arr.length but b not, what to do then?
Please explain the following two random test cases:
0 or 1
, and too many testcases..You have too many extreme length tests. Even a dummy solution cannot run through all tests without timeout.
In fact, almost all of the time are spent on generate the test cases for extreme length tests.
I think you are confusing
null
withzero
.Which tuples? ( Tuples are pairs. I don't see any pairs anywhere. )
I generally do not understand from the description what to do with which values.
Recently I looked for my leaderboard position. The number doesn't give user useful info. I'd suggest to add some percentage of top in addition. Also it would be good to have this percentage within language. With this feauture user would better understand how good is he amongst other users.
This comment is hidden because it contains spoiler information about the solution
Loading more items...