โ† ServiceNow questions

Product of array elements except self in O(N) without division

Filed under ServiceNow

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 this in O(N) time without division.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.