You are viewing a single comment's thread. Return to all comments →
Simple and easy solution for C++
int simpleArraySum(vector<int> ar) { return accumulate(ar.begin(), ar.end(), 0); }
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
Simple and easy solution for C++