1472. Design Browser HistoryYou have a browser of one tab where you start on the homepage and you can visit another url, get back in the history number of steps or move forward in the history number of steps.
yoruru 發表在 痞客邦 留言(0) 人氣(5)
20. Valid ParenthesesGiven a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
yoruru 發表在 痞客邦 留言(0) 人氣(3)
yoruru 發表在 痞客邦 留言(0) 人氣(1)
150. Evaluate Reverse Polish NotationYou are given an array of strings tokens that represents an arithmetic expression in a Reverse Polish Notation.
yoruru 發表在 痞客邦 留言(0) 人氣(2)
232. Implement Queue using StacksImplement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty).
yoruru 發表在 痞客邦 留言(0) 人氣(0)
54. Spiral MatrixGiven an m x n matrix, return all elements of the matrix in spiral order.
yoruru 發表在 痞客邦 留言(0) 人氣(3)
543. Diameter of Binary TreeGiven the root of a binary tree, return the length of the
diameter of the tree.
yoruru 發表在 痞客邦 留言(0) 人氣(0)
104. Maximum Depth of Binary TreeGiven the root of a binary tree, return its maximum depth.
yoruru 發表在 痞客邦 留言(0) 人氣(2)
155. Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.
yoruru 發表在 痞客邦 留言(0) 人氣(1)
122. Best Time to Buy and Sell Stock IIYou are given an integer array prices where prices[i] is the price of a given stock on the i
th day.
yoruru 發表在 痞客邦 留言(0) 人氣(1)