IP属地:德克萨斯州
9-1 number-of-islands (medium)必须是vertical或者horizontal的“1”才是连成一个岛,这里用dfs进...
Hoista variable can be used before it has been declared(var的定义方式).var没有b...
6.5 fibonacci-number (easy)最基础的算斐波那契数列。递归可以,或者是最简单的动态规划。这里的优化就是空间复杂度从O(n...
5.6 symmetric-tree (easy)看一个树是否镜面对称,第一直觉是bfs,但还是用的递归和stack或者dequeue,也就是说...
4.11.leaf-similar-trees (easy)所谓的leaf similar就是说,二叉树的末端的node,从左到右的序列是一样的...
3.11 two-sum (easy)Q: Given exactly one solution, -> 1 there still can b...