You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Given an array nums , return an array such that answer[i] is equal to the product of all the elements of nums except nums[i]
#This can be solved directly using brute force approach, either we can use the division where we first calculate the product of the entire array and for each element we just divide the product by that number to get answer[i] for that position
#or we can even directly iterate through all manually and keep multiplying