← Goldman Sachs questions
CodingEasyReported in a candidate post, Jul 2025

Product of array except self

Filed under Goldman Sachs · Also reported at Amagi, Decimal Point Analytics, Energy Exemplar, FactSet, Intuit, MountBlue, OLA, Persistent and 4 more

Given an integer array nums, return an array answer where answer[i] is the product of all elements of nums except nums[i]. Do not use division. Aim for O(n) time and O(1) extra space beyond the…

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 Goldman Sachs questions

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