TongTong Shi's Blog
A Playground to Share My Knowledge
Trim a Binary Search Tree Trim a Binary Search Tree
LeetCode Q 669- Trim a Binary Search TreeGiven a binary search tree and the lowest and highest boundaries as L and R, tr
2019-07-25 Tong Shi
Second Minimum Node In a Binary Tree Second Minimum Node In a Binary Tree
LeetCode Q 671- Second Minimum Node In a Binary TreeGiven a non-empty special binary tree consisting of nodes with the n
2019-07-25 Tong Shi
Longest Univalue Path Longest Univalue Path
LeetCode Q 687- Longest Univalue PathGiven a binary tree, find the length of the longest path where each node in the pat
2019-07-25 Tong Shi
Lowest Common Ancestor of a Binary Search Tree Lowest Common Ancestor of a Binary Search Tree
LeetCode Q 235- Lowest Common Ancestor of a Binary Search TreeGiven a binary search tree (BST), find the lowest common a
2019-07-25 Tong Shi
Insert into a Binary Search Tree Insert into a Binary Search Tree
LeetCode Q 701 - Insert into a Binary Search TreeGiven the root node of a binary search tree (BST) and a value to be ins
2019-07-25 Tong Shi
Minimum Distance Between BST Nodes Minimum Distance Between BST Nodes
LeetCode Q 783 - Minimum Distance Between BST NodesGiven a Binary Search Tree (BST) with the root node root, return the
2019-07-25 Tong Shi
8 / 79