Trapping Rain Water (LeetCode 42)
The problem You get an array of non-negative integers; each is the height of a…
Tag
9 posts
The problem You get an array of non-negative integers; each is the height of a…
The problem You get a non-negative integer as a string and an integer . Remove…
The problem Design a class whose method is called once per day with that day’s…
The problem You get an integer array that is circular: after the last element…
The problem You get two arrays of distinct integers, and , where every value in…
The problem You get an array of non-negative integers, the heights of bars in a…
The problem You get an array of daily temperatures. For each day , return how…
The monotonic stack is the pattern people find magical: a plain stack, kept in…
Eleven problems that drill the stack and monotonic-stack pattern from Lesson…