SharepoLITIR
Given an array a of n integers where n > 1, return an array output such that output[i] is equal to the product of the elements of the array except a[i] element of the
array.
Example
input array : [1, 2, 3, 4]
output array : [24, 12, 8, 6]
Constraints
It's guaranteed that the product of the elements fits in a 32 bit integer. Also a[i] and output[1] can be positive integer or negative integer or zero.
Now, given the input
[-1000, 1000,0,4]
what's the expected output? Select your answer from the options below.
Answers
Answered by
0
Answer:
SharepoLITIR
Given an array a of n integers where n > 1, return an array output such that output[i] is equal to the product of the elements of the array except a[i] element of the
array.
Example
input array : [1, 2, 3, 4]
output array : [24, 12, 8, 6]
Constraints
It's guaranteed that the product of the elements fits in a 32 bit integer. Also a[i] and output[1] can be positive integer or negative integer or zero.
Now, given the input
[-1000, 1000,0,4]
what's the expected output? Select your answer from the options below.
Similar questions