Product of all the others
Given a list of integers nums with at least two values, return a list out of the same length where out[i] is the product of every value in nums except the one at index i.
Don't use division: it breaks as soon as a value is 0. Values may be negative or zero. Aim for O(n) time and no extra list besides the output.
Besides the tests, one large input (3,500 numbers) with a ~100 ms limit (scaled to your device's speed): brute force won't pass.
Examples
products_except_self([2,3,4,5])→[60,40,30,24]products_except_self([-1,2,0,3])→[0,0,-6,0]products_except_self([0,4,0,2])→[0,0,0,0]