From 50d5bb1af3cfcf45ae7912b3912f76eb74021f18 Mon Sep 17 00:00:00 2001 From: jbsch Date: Thu, 24 Oct 2024 22:13:23 +0530 Subject: [PATCH] added largest rectangle histogram function --- data_structures/stacks/largest_rectangle_histogram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/stacks/largest_rectangle_histogram.py b/data_structures/stacks/largest_rectangle_histogram.py index 107fb41c4..7575bd9f6 100644 --- a/data_structures/stacks/largest_rectangle_histogram.py +++ b/data_structures/stacks/largest_rectangle_histogram.py @@ -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