← Questions

Product of array except self

0
MetaAmazonMicrosoftCodingLast asked Feb 2026

Return an array where each position holds the product of every other element, without division and in linear time, using prefix and suffix products; then do it with constant extra space besides the output.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding