ByteDance / TikTok logoByteDance / TikTok
Coding·60 minMembers

Largest Rectangle in Histogram

Members only

Given a histogram represented by an array of bar heights, compute the largest rectangular area contained inside it. Reported as the second problem in an NG SWE phone screen after a sliding-window warm...

SWE
stack
array
complexity-analysis
hard
Frequency
Single report
Last asked
2026-01-29
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...