[ INFO ]category: Coding difficulty: easy freq: medium first seen: 2026-01-12
[EASY][CODING][MEDIUM]ArrayPrefix Sum
$catproblem.md
Problem Statement
Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product should not use division, and the solution must run in O(n) time. This is LeetCode problem 238, commonly asked in Amazon interviews with array and prefix sum tags.[1][2]