Recent posts

LeetCode - The Stack Part

less than 1 minute read

The typical problems in LeetCode is the basic calculator series. The main idea is to use stack and read the input string from end to start if there’s bracket...

LeetCode - The Tree Part

3 minute read

The basic idea of tree related problems is to use recursion. If we can do it for left subtree and right subtree, we can do it for the whole tree.