CodeOath
← All problems

Product of Array Except Self

Medium
arrays

Return an array where each element is the product of all other elements, without using division.

Example:

Input: nums = [1,2,3,4]
Output: [24,12,8,6]