修改 0084.柱状图中最大的矩形 Go单调栈代码的格式

This commit is contained in:
ShuangmingMa
2023-09-16 22:33:02 +08:00
committed by GitHub
parent 8c3f064927
commit c26fddc702

View File

@ -478,7 +478,6 @@ class Solution:
```go
func largestRectangleArea(heights []int) int {
// 声明max并初始化为0
max := 0
// 使用切片实现栈
stack := make([]int, 0)
@ -507,7 +506,6 @@ func largestRectangleArea(heights []int) int {
}
return max
}
```
### JavaScript: