leetcode 栈
zg轩
你要知道什么是自己想要的,知道什么是不可逆转的,知道用什么方式实现梦想,知道用什么心情面对苦难,人就在转瞬间感悟,进退得失不离不弃也就有了答案。我不知道命运会把我带到何方,但是我会一直用善良维护其左右
展开
-
leetcode 856 括号的分数
题目:Given a balanced parentheses string S, compute the score of the string based on the following rule:() has score 1AB has score A + B, where A and B are balanced parentheses strings.(A) has score...原创 2019-03-25 18:16:22 · 206 阅读 · 0 评论 -
leetcode 844带空格的字符串比较
题目:Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.Example 1:Input: S = “ab#c”, T = “ad#c”Output: trueExplanation: B...原创 2019-03-23 15:06:55 · 289 阅读 · 0 评论 -
leetcode 155 最小栈
题目:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) – Push element x onto stack.pop() – Removes the element on top of the stack.top() – Get ...原创 2019-03-23 19:59:43 · 210 阅读 · 0 评论