We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d029119 + 50d5bb1 commit b00284fCopy full SHA for b00284f
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