Maximum Product Subarray — JavaScript medium interview problem
Given an integer array `nums`, find a contiguous non-empty subarray with the largest product, and return that product.
Tags: dp, kadane
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.