Ad
  • Custom User Avatar

    Kata is unpublished until i fix some serious issues

  • 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..