ExpediaCoding·45 minMembers
Beautiful Towers II (LC 2866)
Members only
A Senior SWE phone-screen problem from Expedia: build a row of towers under per-position height caps so that the skyline forms a single peak, maximizing the total height. The difficulty is getting an efficient solution within a 45-minute screen; the naive approach is easy to write but too slow for large inputs.
SWE
array
monotonic-stack
prefix-sum
hard
Frequency
Single report
Last asked
2026-06-23
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
