Maximum Product Subarray — Interactive Visualizer

Track the running max AND min products to account for the property where multiplying two negative numbers creates a positive.