We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Warmup
- A Very Big Sum
- Discussions
A Very Big Sum
A Very Big Sum
Sort by
recency
|
1968 Discussions
|
Please Login in order to post a comment
The quality of these quetions really took a dump :(
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?
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 ?
Here is my c++ solution, you can watch the video explanation here : https://youtu.be/k6H_RljnY8g
def aVeryBigSum(ar): # Write your code here total = 0 [total := total + num for num in ar] return total