solulubeta
Sign in
NeetCode 150 / Arrays & Hashing
01.06 · Problem

Product of Array Except Self

Medium Prefix and suffix products 1 video LC 238 Pro

This problem is part of solulu Pro

Given an integer array nums, return an array answer where answer[i] is the product of every element except nums[i]. Solve it in O(n) time without using division. All products fit in a 32-bit integer.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 6 of 9 · updated 2026-10-12