All Problems

Maximum Product Subarray

MediumarrayExpected: O(n) time, O(1) spaceInterview Context

Problem

Given an integer array, find the contiguous subarray that has the largest product.

Loading...