TongTong Shi's Blog
A Playground to Share My Knowledge
Binary Search Tree to Greater Sum Tree Binary Search Tree to Greater Sum Tree
LeetCode Q 1038 - Binary Search Tree to Greater Sum TreeGiven the root of a binary search tree with distinct values, mod
2019-07-16 Tong Shi
Sliding Window Maximum Sliding Window Maximum
LeetCode Q 239 - Sliding Window MaximumGiven an array nums, there is a sliding window of size k which is moving from the
2019-07-16 Tong Shi
Game of Life Game of Life
LeetCode Q 289 - Game of LifeAccording to the Wikipedia’s article: “The Game of Life, also known simply as Life, is a ce
2019-07-16 Tong Shi
Univalued Binary Tree Univalued Binary Tree
LeetCode Q 965 - Univalued Binary TreeA binary tree is univalued if every node in the tree has the same value. Return tr
2019-07-16 Tong Shi
Binary Tree Cameras Binary Tree Cameras
LeetCode Q 968 - Binary Tree CameraslGiven a binary tree, we install cameras on the nodes of the tree. Each camera at a
2019-07-16 Tong Shi
Flip Binary Tree To Match Preorder Traversal Flip Binary Tree To Match Preorder Traversal
LeetCode Q 971 - Flip Binary Tree To Match Preorder TraversalGiven a binary tree with N nodes, each node has a different
2019-07-16 Tong Shi
11 / 79