---
title: "Discussion on \"238. Product of Array Except Self\" | Hashnode"
description: "Discussion on \"238. Product of Array Except Self\". Ý tưởng\n\nSử dụng Prefix Product và Postfix Product\n\nPrefix Product (Tích dồn từ đầu mảng)\n\nprefix[i] = tích tất cả phần tử từ arr[0] tới arr[i]\n\nVí dụ:\n\n\n\n\n    arr = [2, 3, 4, 5]\n    prefix = [2, 2*3, 2*3*4, 2*3*4*5]\n           = [2, 6, 24, 120]\n\n\nSu..."
url: "https://hashnode.com/posts/238-product-of-array-except-self/680e65991ba300a9f63274df"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [238\. Product of Array Except Self](https://tanthanh.hashnode.dev/238-product-of-array-except-self?utm_source=hashnode&utm_medium=feed)

Ý tưởng Sử dụng Prefix Product và Postfix Product Prefix Product (Tích dồn từ đầu mảng) prefix\[i\] = tích tất cả phần tử từ arr\[0\] tới arr\[i\] Ví dụ: arr = \[2, 3, 4, 5\] prefix = \[2, 2\*3, 2\*3\*4, 2\*3\*4\*5\] = \[2, 6, 24, 120\] Su...

Apr 27, 2025 · 2 min read · tanthanh.hashnode.dev  
Read the article

## Written by

[Duong Tan Thanh](https://hashnode.com/@thanhdt942)

@thanhdt942

  
[View profile](https://hashnode.com/@thanhdt942)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
