Minimum Cost Tree From Leaf Values
LeetCode problem #1130
Daily Temperatures
Find the number of days until a warmer temperature for each day.
Largest Rectangle in Histogram (LC 84): Monotonic Stack
Hard LC 84. Learn the O(n) monotonic stack (prev/next smaller) to compute max histogram area—step-by-step for FAANG interviews. Practice now.
Next Greater Element
Find the next greater element for each element in an array.
Remove K Digits
Remove k digits from a number to make it as small as possible
Stock Span Problem
Calculate the span of stock prices for each day