
Union FInd
文章平均质量分 56
flyatcmu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Similar String Groups
Two stringsXandYare similar if we can swap two letters (in different positions) ofX, so thatit equalsY. Also two stringsXandYare similar if they are equal.For example,"tars"and"rats"are similar (swapping at positions0and2), and"rats"a...原创 2022-05-03 13:42:35 · 358 阅读 · 0 评论 -
Number of Islands
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 adjacent lands horizontally or vertically. You may assume...原创 2016-08-30 12:47:27 · 554 阅读 · 0 评论