Product of Array Except Self
Example
Input:
[1,2,3,4]
Output:
[24,12,8,6]Note
Numbers: 2 3 4 5
Lefts: 1 2 2*3 2*3*4
Rights: 3*4*5 4*5 5 1
------------------------------
Result: 60 40 30 24Code
Last updated