TongTong Shi's Blog
A Playground to Share My Knowledge
Next Greater Element II Next Greater Element II
LeetCode Q 503 - Next Greater Element IIGiven a circular array (the next element of the last element is the first elemen
2019-06-14 Tong Shi
Sum of Subarray Minimums Sum of Subarray Minimums
LeetCode Q 907 - Sum of Subarray MinimumsGiven an array of integers A, find the sum of min(B), where B ranges over every
2019-06-14 Tong Shi
Minimum Add to Make Parentheses Valid Minimum Add to Make Parentheses Valid
LeetCode Q 946 - Minimum Add to Make Parentheses ValidGiven a string S of ‘(‘ and ‘)’ parentheses, we add the minimum nu
2019-06-14 Tong Shi
Validate Stack Sequences Validate Stack Sequences
LeetCode Q 946 - Validate Stack SequencesGiven two sequences pushed and popped with distinct values, return true if and
2019-06-14 Tong Shi
Next Greater Node In Linked List Next Greater Node In Linked List
LeetCode Q 1019 - Next Greater Node In Linked ListWe are given a linked list with head as the first node. Let’s number
2019-06-14 Tong Shi
Remove Outermost Parentheses Remove Outermost Parentheses
LeetCode Q 1021 - Remove Outermost ParenthesesA valid parentheses string is either empty (""), "(" +
2019-06-14 Tong Shi
25 / 79