Coding

Product of Array Except Self

Calculate the product of an array except for self without using division.

Input: nums = [-1,1,0,-3,3]

Output: [0,0,9,0,0]

Explanation: The single zero zeros out all products except at its own index, which cleanly multiplies the remaining elements.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions