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

Product of All Array Elements

Difficulty: Easy

Acceptance: 80.00%

Points: 20.00

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

Topics

Companies

Articles

Examples:

N/A

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