- 博客(4)
- 收藏
- 关注
原创 130. Surrounded Regions 将包围的符号变换 BFS & DFS & UNION find
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 that surrounded region. For example,
2016-10-12 19:42:00 548 2
原创 140. Word Break II 分词 DP
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. For example, given s = "
2016-10-12 09:33:57 458
原创 212. Word Search II 在二维字母表里找到给定word集合中的word子串
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those hor
2016-10-11 22:36:19 543
原创 321. Create Maximum Number 找到两个数组中能合并的k个的最大数
Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k from digits of the two. The relative order of the digits from the same array mus
2016-10-11 15:02:16 1120
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人