![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode BFS
BoomHusky
计算机专业硕士,希望自己的实力能够更强
展开
-
LeetCode | 695. Max Area of Island BFS
Givena non-empty 2D array grid of0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontalor vertical.) You may assume all four edges of the grid are surroun原创 2018-01-26 12:39:22 · 163 阅读 · 0 评论 -
LeetCode | 786. K-th Smallest Prime Fraction BFS堆排序
A sorted list A contains1, plus some number of primes. Then, for every p < q in the list, weconsider the fraction p/q.What is the K-thsmallest fraction considered? Return your answer as an array ...原创 2018-03-07 18:54:03 · 355 阅读 · 0 评论 -
LeetCode | 216. Combination Sum III BFS
Findall possible combinations of k numbers that add up to a number n,given that only numbers from 1 to 9 can be used and each combination should bea unique set of numbers.Example1:Input: k =3, n = 7Ou...原创 2018-04-21 14:39:17 · 132 阅读 · 0 评论