摘要:
Description Given a board which is a 2D matrix includes a-z and dictionary dict, find the largest collection of words on the board, the words can not 阅读全文
posted @ 2019-12-21 23:10
YuriFLAG
阅读(387)
评论(0)
推荐(0)
摘要:
Description Given a set of words without duplicates, find all word squares you can build from them. A sequence of words forms a valid word square if t 阅读全文
posted @ 2019-12-21 23:06
YuriFLAG
阅读(337)
评论(0)
推荐(0)
摘要:
Description Find connected component in undirected graph. Each node in the graph contains a label and a list of its neighbors. (A connected component 阅读全文
posted @ 2019-12-21 23:04
YuriFLAG
阅读(334)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2019-12-21 23:02
YuriFLAG
阅读(321)
评论(0)
推荐(0)
摘要:
Description Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. Description Given a 2D board containing 'X' and 'O', captu 阅读全文
posted @ 2019-12-21 23:00
YuriFLAG
阅读(191)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2019-12-21 22:57
YuriFLAG
阅读(233)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2019-12-21 22:54
YuriFLAG
阅读(190)
评论(0)
推荐(0)
摘要:
Description Implement an iterator to flatten a 2d vector. Example Example 1: Input:[[1,2],[3],[4,5,6]] Output:[1,2,3,4,5,6] Example 2: Input:[[7,9],[5 阅读全文
posted @ 2019-12-21 22:52
YuriFLAG
阅读(301)
评论(0)
推荐(0)
摘要:
Description Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill usin 阅读全文
posted @ 2019-12-21 22:51
YuriFLAG
阅读(180)
评论(0)
推荐(0)
摘要:
Description Follow up Zigzag Iterator: What if you are given k 1d vectors? How well can your code be extended to such cases? The "Zigzag" order is not 阅读全文
posted @ 2019-12-21 22:49
YuriFLAG
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号