TongTong Shi's Blog
A Playground to Share My Knowledge
Clone Graph Clone Graph
LeetCode Q 892 - Clone GraphGiven a reference of a node in a connected undirected graph, return a deep copy (clone) of t
2019-05-02 Tong Shi
Alien Dictionary Alien Dictionary
LintCode Q 892 - Alien DictionaryThere is a new alien language which uses the latin alphabet. However, the order among l
2019-05-02 Tong Shi
Topological Sorting Topological Sorting
LintCode Q 127 - Topological SortingGiven an directed graph, a topological order of the graph nodes is defined as follow
2019-05-02 Tong Shi
Graph Valid Tree Graph Valid Tree
LintCode Q 178 - Graph Valid TreeGiven n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pa
2019-05-02 Tong Shi
Serialize and Deserialize Binary Tree Serialize and Deserialize Binary Tree
LeetCode Q 297 - Serialize and Deserialize Binary TreeSerialization is the process of converting a data structure or obj
2019-05-01 Tong Shi
Binary Tree Level Order Traversal Binary Tree Level Order Traversal
LeetCode Q 102 - Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes’ va
2019-05-01 Tong Shi
48 / 79