Product of Array Except Self — JavaScript medium interview problem
Given an integer array `nums`, return an array `answer` where `answer[i]` is the product of all elements of `nums` except `nums[i]`. Solve without using division, and in O(n) time.
Tags: prefix, suffix
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.