Maximum Product Subarray — 1-D DP

Find the single unbroken stretch of yield multipliers whose product is largest, and report that largest return.

1-D DP · Medium

More in 1-D DP

All algorithm problems