- 博客(3)
- 收藏
- 关注
原创 138. Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.这题的难点在于如何合理的复制random指针这个属性。当我们先不考虑ra...
2019-02-10 16:40:59 327
原创 110. Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as:a binary tree in which the depth of the two subtrees of every node never differ...
2019-02-05 17:48:24 154
原创 200. Number of Islands
Given a 2d grid map of '1’s (land) and '0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume...
2019-02-01 17:56:31 406
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人