Back to Questions

Product of Array Except Self

130.9K viewsAsked at Amazon
Medium

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question