Back to Question

Product of Array Except Self

Question Explain

Given an integer array `nums`, return an array `answer` such that `answer[i]` is equal to the product of all the elements of `nums` except `nums[i]`. Do not use division and solve in $O(n)$.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.