We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2d1fe commit 50d5bb1Copy full SHA for 50d5bb1
data_structures/stacks/largest_rectangle_histogram.py
@@ -1,7 +1,7 @@
1
def largest_rectangle_area(heights: list[int]) -> int:
2
"""
3
- Given an array of integers representing the heights of bars,
4
- this function returns the area of the largest rectangle that can be formed
+ Inputs an array of integers representing the heights of bars,
+ and returns the area of the largest rectangle that can be formed
5
6
>>> largest_rectangle_area([2, 1, 5, 6, 2, 3])
7
10
0 commit comments