awelgorithms

Product of Array Except Self: the skills you need first

Updated

LeetCode · medium · arrays. Left products times right products. No division; zeros make division illegal.

open on LeetCode

Skills this problem builds on

Stuck on Product of Array Except Self? It is usually one of these. Get each one solid and the solution stops being a trick.

  1. Exclude current element
  2. Combine prefix and suffix
  3. Build suffix products
check which ones you have 10 minutes, free, no account.

More arrays problems