A Very Big Sum

Sort by

recency

|

1968 Discussions

|

  • + 0 comments

    The quality of these quetions really took a dump :(

  • + 0 comments

    I'm tons problem about the Appraisals website and its security problems, can a person tell me the satisfactory security answers to be accompanied for my website?

  • + 1 comment

    This is the code I have written for python : def aVeryBigSum(ar): r = 0 for i in range (0,len(ar),1): r += ar[i] return r Is this the best way or is there another more proficient way ?

  • + 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;
    }
    
  • + 0 comments

    def aVeryBigSum(ar): # Write your code here total = 0 [total := total + num for num in ar] return total