You 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
.
- Mar 21 Tue 2023 19:35
[LeetCode-C] 1472. Design Browser History
- Mar 18 Sat 2023 22:47
[LeetCode-C] 20. Valid Parentheses
Given a string s
containing just the characters '('
, ')'
, '{'
, '}'
, '['
and ']'
, determine if the input string is valid.
- Mar 18 Sat 2023 12:14
[LeetCode-C] 227. Basic Calculator II
Given a string s
which represents an expression, evaluate this expression and return its value.
- Mar 17 Fri 2023 16:37
[LeetCode-C] 150. Evaluate Reverse Polish Notation
150. Evaluate Reverse Polish Notation
You are given an array of strings tokens
that represents an arithmetic expression in a Reverse Polish Notation.
- Mar 14 Tue 2023 13:06
[LeetCode-C] 232. Implement Queue using Stacks
232. Implement Queue using Stacks
Implement 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
).
- Mar 14 Tue 2023 11:17
[LeetCode-C] 54. Spiral Matrix
Given an m x n
matrix
, return all elements of the matrix
in spiral order.
- Mar 02 Thu 2023 22:27
[LeetCode-C] 543. Diameter of Binary Tree
Given the root
of a binary tree, return the length of the diameter of the tree.
- Mar 02 Thu 2023 22:23
[LeetCode-C] 104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree
Given the root
of a binary tree, return its maximum depth.
- Mar 02 Thu 2023 21:19
[LeetCode-C] 155. Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
- Mar 02 Thu 2023 17:06
[LeetCode-C] 122. Best Time to Buy and Sell Stock II
122. Best Time to Buy and Sell Stock II
You are given an integer array prices
where prices[i]
is the price of a given stock on the ith
day.