Medium · Arrays & hashing

Product of Array Except Self

Return an array where each position holds the product of every other number. Do it without division, in O(n).

nums = [1, 2, 3, 4]

→ [24, 12, 8, 6]
Record your take

No one has solved it yet.