Problem
Given an integer array, return an array where each element is the product of all other elements. Must run in O(n) without using the division operator.
References
Difficulty
🟡 Medium
Companies
Amazon, Facebook, Flipkart
Notes
Language: Java
Left prefix products pass, then right suffix products pass. No division needed.
Problem
Given an integer array, return an array where each element is the product of all other elements. Must run in O(n) without using the division operator.
References
Difficulty
🟡 Medium
Companies
Amazon, Facebook, Flipkart
Notes
Language: Java
Left prefix products pass, then right suffix products pass. No division needed.