Recent posts

Maximum Binary Tree

1 minute read

Construct the maximum tree by the given array and return the root node of this tree.

Minimum Difference Between BST Nodes

1 minute read

Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.

Binary Tree Pruning

1 minute read

Return this tree where every subtree (of the given tree) not containing a 1 has been removed.