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.
Answer 0 is correct.
Left hand side of index 0 is nothing which sums to 0;
Right hand side of index 0 is 10 + (-80) + 10 + 10 + 15+ 35 = 0
This scenario fulfils the question definition.
So the answer is 0
Thanks foe answer! Kata complite)
i understood this time. the input was actually null. i got it thenk you for helping.
printing also says "null". cant't understand what this means.
It's a question: a problem in your code is not a kata issue.
You can print the input.
whats wrong with it. passes all the tests except one which says "can't read property length of null". not showing the input for which this error is appearing.
That's exactly the last example in the kata's description.
Something wrong with this Kata. My code passes all 50 tests except one for input [20,10,-80,10,10,15,35] which expects 0. but according to question o/p must be equal to -1. the o/p will be 0 only if the number 20 on the 0th index is removed. please correct me if i'm wrong.