暴力
Data Structures & Algorithms · 4 notes
- Maximum Product Subarrayhistorical
Given an integer array nums, find the contiguous subarray with the largest product (the subarray contains at least one number) and return that product.
- Subarray Sum Equals Khistorical
Given an integer array and an integer k, find the number of contiguous subarrays whose sum equals k.
- Maximal Squarehistorical
In a 2D matrix consisting of '0' and '1', find the largest square containing only '1' and return its area.
- Daily Temperatureshistorical
Given a list of daily temperatures, generate a new list where each position contains the minimum number of days you must wait to observe a warmer temperature.