Recent posts

Lowest Common Ancestor II

1 minute read

Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.

Same Tree

1 minute read

Check if two binary trees are identical. Identical means the two binary trees have the same structure and every identical position has the same value.

Binary Tree Path Sum

1 minute read

Given a binary tree, find all paths that sum of the nodes in the path equals to a given number target.

Clone Binary Tree

less than 1 minute read

For the given binary tree, return a deep copy of it.

Insert Five

1 minute read

Given a number, insert a 5 at any position of the number to make the number after insertion the largest