Product Array Coding Interview Question | Skilled.dev
Given an array of integers, write a function buildProductArray that returns an array where each item is the product of all the items in the input array except for the item at that index.
Constraints:
- Solve this without using division
- You can create a
resultsarray, and it won't count against your space complexity - Memory may be a concern though, so try to limit your use of additional data structures