Valid Parentheses (LeetCode 20)
The problem You get a string made only of the characters . Return if the…
Tag
13 posts
The problem You get a string made only of the characters . Return if the…
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 Design a stack class with four operations, each in O(1) time: puts…
The problem You get an array of non-negative integers, the heights of bars in a…
The problem You get the root of a binary search tree and an integer (1-indexed…
The problem You get a list of string tokens that form an arithmetic expression…
The problem You get an array of daily temperatures. For each day , return how…
The problem You get an array of non-zero integers, each an asteroid in a row…
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…