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

Interview question asked to Software Engineers interviewing at NXP Semiconductors, Udacity, NCR and other companies. Original question asked: Product of Array Except Self.