![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
伊萨卡钢琴家
这个作者很懒,什么都没留下…
展开
-
Leetcode 130. Surrounded Regions
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded region.Analysis: This question i转载 2016-01-21 05:04:35 · 342 阅读 · 0 评论 -
Leetcode 207. Course Schedule
There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as原创 2016-01-27 01:43:57 · 294 阅读 · 0 评论 -
Leetcode 210. Course Schedule II
There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as原创 2016-01-27 01:46:38 · 253 阅读 · 0 评论