![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度优先遍历
LUCASYAN个
这个作者很懒,什么都没留下…
展开
-
576. Out of Boundary Paths
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to原创 2017-09-05 00:07:37 · 198 阅读 · 0 评论 -
529. Minesweeper 扫雷游戏 DFS BFS
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unrevealed mine, 'E' represents an unrevealed empty square,原创 2017-09-06 14:23:56 · 533 阅读 · 0 评论 -
491. Increasing Subsequences
Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing subsequence should be at least 2 . Example: Inpu原创 2017-09-07 22:57:38 · 151 阅读 · 0 评论 -
301. Remove Invalid Parentheses
6原创 2017-09-06 14:23:33 · 209 阅读 · 0 评论