max-product-two-candidates

Status: IN

The maximum product of three numbers from a sorted array is always `max(top3_product, bottom2_times_top1)` — no other combination of three indices can produce a larger value.

Source: entries/2026/06/06/maximum-product-of-three-numbers-solution.md

JSON