2 ms·
The add_all() function as presented on their web page is wrong,instead of adding the array elements it just returns the last one. Line 180 should be: count +=
by zoka 15y ago
The add_all() function as presented on their web page is wrong,instead of adding the array elements it just returns the last one.
Line 180 should be: count += num_arr[i];
Moreover naming accumulation variable for sum "count" is totally counter intuitive.