[LeetCode] 152. Maximum Product Subarray


[LeetCode] 152. Maximum Product Subarray

https://leetcode.com/problems/maximum-product-subarray/description/ Maximum Product Subarray - LeetCode Can you solve this real interview question? Maximum Product Subarray - 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. Example 1: Input: nums = [2,3,-2,4] Output: 6 Expl... leetcode.com 문제 정수 배열 nums가 주어졌을 때, 가장 큰 곱을 가진 부분 배열을 찾고 그 곱을 반환합니다. 테스트 케이스는 답이 32비트 정수에 맞도록 ...


#array #java #leetcode #leetcodeproblem

원문링크 : [LeetCode] 152. Maximum Product Subarray