Ad
  • Custom User Avatar

    Your not on the leaderboard because your terrible

  • Custom User Avatar

    nice point, applying

  • Custom User Avatar

    Thanks for the feedback. Fixed ;-)

  • Custom User Avatar

    There is a security hole, look at my solution :)

  • Custom User Avatar

    two positive integers in array start (one is non-zero)

    0, BTW, is not positive. You may mean non-negative.

  • Custom User Avatar

    Kata is unpublished until i fix some serious issues

  • Custom User Avatar

    reply to read your hidden message

  • Custom User Avatar

    Made clearer, thank you for your feedback

  • Custom User Avatar

    Modified

  • Custom User Avatar

    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 at 1,20 then goes to 1,20,21,41,... but it doesnt matter because array length is 2 so first pair 1,20 is out of range so you should return 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.

  • Custom User Avatar

    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:

    Test.assertEquals(fv([ 20, 1 ],[ 70, -55 ],11),0)
    Test.assertEquals(fv([ 12, 9 ],[ -4, -49, 17, -4, 94, -83, 94, -59, 36 ],25),1)
    
    • Most of the random test expected 0 or 1, and too many testcases..
  • Custom User Avatar

    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.

  • Custom User Avatar

    I think you are confusing null with zero.

    sum at index (given by tuples)

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...