console.log the inputs.
Is there a way to inspect the details of the tests?
There are only 2 regular tests in JS, which my code passes, but then when I submit I get about 15% failure rate on the random tests. Without being able to see the arrays it's testing against, I have no idea how to troubleshoot 😢
i've done this kata without an empty list and it works!
That was pretty helpful thank you! fixed it
The whole array.
What range gives you 155?
Added one fixed test to all languages.
thank you for the heads up! I'll study the solutions to check what went wrong
Your code is incorrect for inputs like this one:
[ 7, 4, 11, -11, 39, 36, 10, -6, 37, -10, -32, 44, -26, -34, 43, 43 ]
This is the error message:
Expected: 155, instead got: 148
You can see 155 is the right answer adding all the numbers.
Oh! my bad. Now knowing that it's random I just attempted it again and it passed ¯_(ツ)_/¯.
If it is random, we can't help you, it'll be different every time, try using console.log() to print the input yourself, it'll appear above the test result.
I pass all the tests but the one with the result of 171, it should be test #41 on the random arrays. Could someone provide me with that array so I can debug it?
"Note that the empty list or array is also a valid sublist/subarray."
I cant understand what does this note mean? When should I return an empty list?
This comment is hidden because it contains spoiler information about the solution