![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
breadth-first-search
Goofiness
这个作者很懒,什么都没留下…
展开
-
[LeetCode]Longest String Chain@Golang
Longest String ChainGiven a list of words, each word consists of English lowercase letters.Let’s say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in word1 to...原创 2019-10-30 23:56:05 · 131 阅读 · 0 评论 -
[LeetCode]Numbers With Same Consecutive Differences@Golang
Numbers With Same Consecutive DifferencesReturn all non-negative integers of length N such that the absolute difference between every two consecutive digits is K.Note that every number in the answer...原创 2019-10-16 22:37:54 · 179 阅读 · 0 评论 -
[LeetCode]Symmetric Tree@Python
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric:1/ 2 2/ \ / 3 4 4 3...原创 2019-05-09 21:17:20 · 86 阅读 · 0 评论 -
[LeetCode]Binary Tree Zigzag Level Order Traversal@Python
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternat...原创 2019-05-26 22:48:35 · 169 阅读 · 1 评论