A Very Big Sum

  • + 0 comments

    Here is my c++ solution, you can watch the video explanation here : https://youtu.be/k6H_RljnY8g

    long aVeryBigSum(vector<long> ar) {
        long result = 0;
        for(int i = 0; i < ar.size(); i++) result += ar[i];
        return result;
    }