TongTong Shi's Blog
A Playground to Share My Knowledge
MySQL Master-Slave Replication MySQL Master-Slave Replication
In this post, we will introduce how to setting up matser-slave replication in MySQL. First why we want to use MySQL mast
2019-07-24 Tong Shi
Binary Tree Pruning Binary Tree Pruning
LeetCode Q 814 - Binary Tree PruningWe are given the head node root of a binary tree, where additionally every node’s va
2019-07-22 Tong Shi
Sum of Distances in Tree Sum of Distances in Tree
LeetCode Q 834 - Sum of Distances in TreeAn undirected, connected tree with N nodes labelled 0...N-1 and N-1 edges are g
2019-07-22 Tong Shi
All Nodes Distance K in Binary Tree All Nodes Distance K in Binary Tree
LeetCode Q 863 - All Nodes Distance K in Binary TreeWe are given a binary tree (with root node root), a target node, and
2019-07-18 Tong Shi
Construct Binary Tree from Preorder and Postorder Traversal Construct Binary Tree from Preorder and Postorder Traversal
LeetCode Q 889 - Construct Binary Tree from Preorder and Postorder TraversalReturn any binary tree that matches the give
2019-07-18 Tong Shi
Increasing Order Search Tree Increasing Order Search Tree
LeetCode Q 897 - Increasing Order Search TreeGiven a binary search tree, rearrange the tree in in-order so that the left
2019-07-16 Tong Shi
9 / 79