Skip to content

Commit 50d5bb1

Browse files
committed
added largest rectangle histogram function
1 parent 5c2d1fe commit 50d5bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/stacks/largest_rectangle_histogram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def largest_rectangle_area(heights: list[int]) -> int:
22
"""
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
3+
Inputs an array of integers representing the heights of bars,
4+
and returns the area of the largest rectangle that can be formed
55
66
>>> largest_rectangle_area([2, 1, 5, 6, 2, 3])
77
10

0 commit comments

Comments
 (0)