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 ...
分类:
其他好文 时间:
2016-11-17 10:00:25
阅读次数:
161
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 ...
分类:
编程语言 时间:
2016-11-10 19:28:00
阅读次数:
192
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 ...
分类:
其他好文 时间:
2016-11-08 01:08:42
阅读次数:
240
1. 并查集相关的题目 2. Surrounded Regions Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all ...
分类:
其他好文 时间:
2016-10-22 17:09:00
阅读次数:
188
Format strings contain “replacement fields” surrounded by curly braces {} ...
分类:
其他好文 时间:
2016-10-16 14:15:07
阅读次数:
300
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 ...
分类:
其他好文 时间:
2016-10-10 09:27:02
阅读次数:
186
The map of Berland is a rectangle of the size n?×?m, which consists of cells of size 1?×?1. Each cell is either land or water. The map is surrounded b ...
分类:
其他好文 时间:
2016-10-04 01:36:35
阅读次数:
386
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 ...
分类:
其他好文 时间:
2016-09-23 06:33:07
阅读次数:
141
Task description A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the ...
分类:
其他好文 时间:
2016-09-21 15:46:53
阅读次数:
176
Shaping Regions Time limit: 0.5 secondMemory limit: 64 MB N opaque rectangles (1 ≤ N ≤ 1000) of various colors are placed on a white sheet of paper wh ...