Maximum Product Subarray at ServiceNow
Medium36.0% acceptance
This problem has 62.5% frequency at ServiceNow.
Problem Description
Given an integer array `nums`, find a subarray that has the largest product, and return _the product_. The test cases are generated so that the answer will fit in a **32-bit** integer. **Note** that the product of an array with a single element is the value of that element.
Read full problem and hintsTopics
Also asked at 20 companies
More ServiceNow Questions
Trapping Rain WaterHardNumber of Distinct Roll SequencesHardContainer With Most WaterMediumGenerate ParenthesesMediumFirst Missing PositiveHard
View all ServiceNow questions