mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-11 00:59:49 +00:00
Merge branch 'largest_rect'
This commit is contained in:
commit
b00284fa1f
@ -1,7 +1,7 @@
|
||||
def largest_rectangle_area(heights: list[int]) -> int:
|
||||
"""
|
||||
Given an array of integers representing the heights of bars,
|
||||
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
|
||||
|
||||
>>> largest_rectangle_area([2, 1, 5, 6, 2, 3])
|
||||
10
|
||||
|
Loading…
x
Reference in New Issue
Block a user