Day 7 - Product of Array Except Self
Question
Given an integer array nums, return an array output where output[i] is the product of all the elements of nums except nums[i].
Example 1
Input: nums = [1,2,4,6]
Output: [48,24,12,8]
Example 2
Input: strs = [-1,0,1,2,3]
Output: [0,-6,0,0,0]
A...
blogs-himanshu.hashnode.dev5 min read