TongTong Shi's Blog
A Playground to Share My Knowledge
Coloring A Border Coloring A Border
LeetCode Q 1134 - Coloring A BorderGiven a 2-dimensional grid of integers, each value in the grid represents the color o
2019-08-07 Tong Shi
Minimum Cost Tree From Leaf Values Minimum Cost Tree From Leaf Values
LeetCode Q 1130 - Minimum Cost Tree From Leaf ValuesGiven an array arr of positive integers, consider all binary trees s
2019-08-05 Tong Shi
Shortest Path with Alternating Colors Shortest Path with Alternating Colors
LeetCode Q 1128 - Shortest Path with Alternating ColorsConsider a directed graph, with nodes labelled 0, 1, ..., n-1. I
2019-08-05 Tong Shi
Number of Equivalent Domino Pairs Number of Equivalent Domino Pairs
LeetCode Q 1128 - Number of Equivalent Domino PairsGiven a list of dominoes, dominoes[i] = [a, b] is equivalent to domin
2019-08-05 Tong Shi
Maximum Binary Tree Maximum Binary Tree
LeetCode Q 654 - Maximum Binary TreeGiven an integer array with no duplicates. A maximum tree building on this array is
2019-07-25 Tong Shi
Maximum Width of Binary Tree Maximum Width of Binary Tree
LeetCode Q 662- Maximum Width of Binary TreeGiven a binary tree, write a function to get the maximum width of the given
2019-07-25 Tong Shi
7 / 79