Arrays

Maximum Product Subarray

medium
Given an integer array `nums`, find a contiguous non-empty subarray with the largest product, and return that product.
Hint steps(0/2 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.