摘要:
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in 阅读全文
posted @ 2016-10-11 08:44
微微程序媛
阅读(128)
评论(0)
推荐(0)
摘要:
You are given a m x n 2D grid initialized with these three possible values. Fill each empty room with the distance to its nearest gate. If it is impos 阅读全文
posted @ 2016-10-11 08:43
微微程序媛
阅读(156)
评论(0)
推荐(0)
摘要:
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 adjacen 阅读全文
posted @ 2016-10-11 08:39
微微程序媛
阅读(114)
评论(0)
推荐(0)
摘要:
Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, your program should 阅读全文
posted @ 2016-10-11 08:37
微微程序媛
阅读(135)
评论(0)
推荐(0)
摘要:
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution sti 阅读全文
posted @ 2016-10-11 08:36
微微程序媛
阅读(158)
评论(0)
推荐(0)
摘要:
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its ne 阅读全文
posted @ 2016-10-11 08:34
微微程序媛
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号