Question: Use Java or Javascript to slve 1. Given an array of numbers, write a function to return an array of numbers' where productsli] is the
Use Java or Javascript to slve

1. Given an array of numbers, write a function to return an array of numbers' where productsli] is the Input: [1, 2, 3,4, 5] Output: [(2*3*4*5), (1 3*4*5), (1*2*4*5), (1*2*3*5), (1*2*3*4)1 [120, 60, 40, 30, 24] You should do this in O(N) without using division
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
