---
title: "Discussion on \"Largest Rectangle in Histogram LeetCode\" | Hashnode"
description: "Discussion on \"Largest Rectangle in Histogram LeetCode\". Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, Return the area of the largest rectangle in the histogram.\nExample 1:\n\nInput: heights = [2,1,5,6,2,3]\nOutput: 10\nExplanation: The above is a ..."
url: "https://hashnode.com/posts/largest-rectangle-in-histogram-leetcode/64e64420abe1665509705fb0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Largest Rectangle in Histogram LeetCode](https://leetcodex.hashnode.dev/largest-rectangle-in-histogram-leetcode?utm_source=hashnode&utm_medium=feed)

Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, Return the area of the largest rectangle in the histogram. Example 1: Input: heights = \[2,1,5,6,2,3\] Output: 10 Explanation: The above is a ...

Aug 23, 2023 · 3 min read · leetcodex.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#interview](https://hashnode.com/tag/interview)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)

## Written by

[Ujjawal Kumar](https://hashnode.com/@endeavourmonk)

@endeavourmonk · India

  
[View profile](https://hashnode.com/@endeavourmonk)

programmer

Hi there, I am Ujjawal, programmer with a keen interest in problem-solving and developing new software that will add value to the community. As a software developer, my goal is to build solutions that can make human life easier in any way possible. My current skillset includes : C/C++ Data Structures &amp; Algorithms Database Management HTML5, CSS3, JavaScript. Frameworks/Libraries like React, Tailwind CSS, Bootstrap I am always ready to learn new technologies and implement them to current solutions to make them more efficient and robust.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
