BFS
文章平均质量分 85
Juxin_Lin
这个作者很懒,什么都没留下…
展开
-
【LeetCode】127. Word Ladder
Difficulty: Medium Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence frombeginWord to endWord, such that: Only one lett原创 2016-09-11 16:19:17 · 573 阅读 · 2 评论 -
【LeetCode】130. Surrounded Regions
Difficulty: Medium 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 reg原创 2017-01-13 23:53:14 · 288 阅读 · 0 评论