Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Sum of Array Elements

Difficulty: Easy

Acceptance: 58.00%

Points: 20.00

You are given an array of integers. Your task is to calculate the sum of all elements present in the array and return the sum.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 <N<105
  • -109 < arr[i] < 109
Companies:
Samsung Mastercard Media.net
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.