You are viewing a single comment's thread. Return to all comments →
I removed all the values from array which are <=0 and found the sum of the array and got the wrong value in some test cases. Isn't it the same thing?
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
I removed all the values from array which are <=0 and found the sum of the array and got the wrong value in some test cases. Isn't it the same thing?