当前位置:网站首页>leetcode:85. Max rectangle
leetcode:85. Max rectangle
2022-06-24 06:40:00 【Oceanstar's learning notes】
Title source
Title Description


title
The matrix is as follows :
Prepare a histogram array
- The submatrix must be in the second order 0 In the case of rows as foundations ( Look up ), Which submatrix contains 1 most
- obtain [1、1、1、1、1], And then we get maxArea=1+1+1+1+1=5
- The submatrix must be in the second order 1 In the case of rows as foundations ( Look up ), Which submatrix contains 1 most
- obtain [2、0、2、2、2], And then we get maxArea=2+2+2=6
- The submatrix must be in the second order 2 In the case of rows as foundations ( Look up ), Which submatrix contains 1 most
- obtain [3、1、3、0、3], And then we get maxArea=1+1+1=3
- The submatrix must be in the second order 3 In the case of rows as foundations ( Look up ), Which submatrix contains 1 most
- obtain [4、2、4、1、4], And then we get maxArea=2+2+2=6
Get maxArea You can refer to leetcode:84. The largest rectangle in the histogram
边栏推荐
- Printer connection mode
- When the VPC main network card has multiple intranet IP addresses, the server cannot access the network internally, but the server can be accessed externally. How to solve this problem
- Reasons for automatic allocation failure of crawler agent IP
- Raspberry PI (bullseye) replacement method of Alibaba cloud source
- Tencent security apkpecker launched dex-vmp automatic shelling service
- 【JUC系列】Executor框架之CompletionFuture
- Innovating the security service mode, deeply convinced that the organization has been equipped with a "continuous online expert group"
- How to open a hidden file
- Excellent tech sharing | research and application of Tencent excellent map in weak surveillance target location
- What is a secondary domain name primary domain name how to apply for a secondary domain name
猜你喜欢
随机推荐
How to solve the problem that after Tencent cloud sets static DNS, restarting the machine becomes dynamic DNS acquisition
Operation and maintenance dry goods | how to improve the business stability and continuity through fault recovery?
Replacing human eyes -- visual inspection technology
go 断点续传
Go current limiting component package rate source code analysis
How does easyplayer RTSP configure sending heartbeat information to the server?
记录--关于JSP前台传参数到后台出现乱码的问题
Asp+access web server reports an error CONN.ASP error 80004005
Risk management - Asset Discovery series - public web asset discovery
Game website making tutorial and correct view of games
Deploy DNS server using dnsmasq
Do you know about Statistics?
How to batch move topics to different categories in discover
Analysis on the influence of "network security policy issued successively" on Enterprises
Enter the software test pit!!! Software testing tools commonly used by software testers software recommendations
Easy car Interviewer: talk about MySQL memory structure, index, cluster and underlying principle!
Oracle case: ohasd crash on AIX
Produce kubeconfig with permission control
Another authoritative recommendation! Tencent zero trust was recognized by omdia Report
【二叉数学习】—— 树的介绍








