solulubeta
Sign in
NeetCode 150 / Stack
04.07 · Problem

Largest Rectangle in Histogram

Hard Monotonic increasing stack 1 video LC 84 Pro

This problem is part of solulu Pro

heights[i] is the height of a bar of width 1 in a histogram. Return the area of the largest rectangle that fits entirely inside the histogram.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 27 of 150 · updated 2026-10-12