This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
A Very Big Sum #30
Comments
i would like to provide the solution in java |
hiii i have solved using c can u assign this one |
Merged
Closed
I want to solve it using python |
theNamanchauhan
added a commit
to theNamanchauhan/hacktoberfest
that referenced
this issue
Oct 19, 2022
I contributed in cognizance-amrita#30
Merged
@ndrohith09 Hello I have solved this issue using python can you please assign me this one |
Closed
Gamer5262
added a commit
to Gamer5262/hacktoberfest
that referenced
this issue
Oct 26, 2022
I would like to solve this problem in c#. |
art-rauniyar
added a commit
to art-rauniyar/hacktoberfest
that referenced
this issue
Oct 30, 2022
updated code for cognizance-amrita#30
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In this challenge, you are required to calculate and print the sum of the elements in an array, keeping in mind that some of those integers may be quite large.
Function Description
Complete the aVeryBigSum function in the editor below. It must return the sum of all array elements.
aVeryBigSum has the following parameter(s):
Return
Input Format
The first line of the input consists of an integer .
The next line contains space-separated integers contained in the array.
Output Format
Return the integer sum of the elements in the array.
Constraints
Sample Input
Output
Note:
The range of the 32-bit integer is
(-2^31) to (2^31 -1)
or[-2147483648 , 21474836647]
.When we add several integer values, the resulting sum might exceed the above range. You might need to use long int C/C++/Java to store such sums.
When we add several integer values, the resulting sum might exceed the above range. You might need to use long int C/C++/Java to store such sums.
The text was updated successfully, but these errors were encountered: