- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Daily Coding Challenge #2
Question:
Given an array of integers, return a new array such that each elementat index i of the new array is the product of all the numbers in theoriginal array except the one at i.For example:if our input was [1, 2, 3, 4, 5], the expected outputwould be [120, 60, 40, 30, 24]. If our input was [3, 2, 1], theexpected output would be [2, 3, 6].
Reference:
dailycodingproblem
Comments
Post a Comment