We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
easy ... just add all the elements of the array!
in a loop as the array elements to a new variable and substract the upcoming elemet from the total!
compare the two! if equal print yes else no!
passes
1
1
1
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
easy ... just add all the elements of the array! in a loop as the array elements to a new variable and substract the upcoming elemet from the total! compare the two! if equal print yes else no! passes 1 1 1
6th test case