Description Find the number Weak Connected Component in the directed graph. Each node in the graph contains a label and a list of its neighbors. (a we ...
分类:
其他好文 时间:
2019-12-22 00:56:39
阅读次数:
123
Description Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or ...
分类:
其他好文 时间:
2019-12-22 00:56:25
阅读次数:
78
Description Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find a place to build a post office so t ...
分类:
其他好文 时间:
2019-12-22 00:45:14
阅读次数:
75
Description Build tries from a list of <word, freq> pairs. Save top 10 for each node. Example Example1 Input: <"abc", 2> <"ac", 4> <"ab", 9> Output:<a ...
分类:
其他好文 时间:
2019-12-22 00:34:12
阅读次数:
73
Description Find connected component in undirected graph. Each node in the graph contains a label and a list of its neighbors. (A connected component ...
分类:
其他好文 时间:
2019-12-22 00:30:24
阅读次数:
82
Description Given a 2D grid, each cell is either an house 1 or empty 0 (the number zero, one), find the place to build a post office, the distance tha ...
分类:
其他好文 时间:
2019-12-22 00:14:34
阅读次数:
66
Description Description You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the onl ...
分类:
其他好文 时间:
2019-12-21 22:52:01
阅读次数:
99
4292: Count the Trees 时间限制(普通/Java):2000MS/6000MS 内存限制:65536KByte总提交: 15 测试通过:6 描述 A binary tree is a tree data structure in which each node has at mo ...
分类:
其他好文 时间:
2019-12-21 22:51:42
阅读次数:
91
Description Given n kinds of items, and each kind of item has an infinite number available. The i-th item has size A[i] and value V[i]. Also given a b ...
分类:
其他好文 时间:
2019-12-21 22:49:05
阅读次数:
83
Description Description Given a set of strings which just has lower case letters and a target string, output all the strings for each the edit distanc ...
分类:
其他好文 时间:
2019-12-21 22:45:17
阅读次数:
83