![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode dfs
zg轩
你要知道什么是自己想要的,知道什么是不可逆转的,知道用什么方式实现梦想,知道用什么心情面对苦难,人就在转瞬间感悟,进退得失不离不弃也就有了答案。我不知道命运会把我带到何方,但是我会一直用善良维护其左右
展开
-
leetcode 638怎样购物最省钱
In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or more different kinds of items with a sal...原创 2019-01-31 15:21:20 · 248 阅读 · 0 评论 -
leetcode 337 抢劫III
题目:The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the “root.” Besides the root, each house has one and only one parent house. After a ...原创 2019-01-31 16:57:14 · 587 阅读 · 0 评论 -
leetcode 851 富有与安静
题目:In a group of N people (labelled 0, 1, 2, …, N-1), each person has different amounts of money, and different levels of quietness.For convenience, we’ll call the person with label x, simply “perso...原创 2019-01-31 19:02:33 · 1630 阅读 · 0 评论 -
leetcode 778边下雨边游泳
On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j).Now rain starts to fall. At time t, the depth of the water everywhere is t. You can swim from a square to another...原创 2019-01-31 19:49:45 · 218 阅读 · 0 评论 -
leetcode 959 斜线分割区域
ShareIn a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, , or blank space. These characters divide the square into contiguous regions.(Note that backslash characters are e...原创 2019-01-28 15:11:28 · 393 阅读 · 0 评论 -
leetcode 473 用火柴棍组成正方形
题目:Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one square by using up all those matchsticks. You s...原创 2019-02-02 17:56:39 · 311 阅读 · 0 评论 -
leetcode 394 编码字符串
题目:Given an encoded string, return it’s decoded string.The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is ...原创 2019-02-02 17:58:16 · 162 阅读 · 0 评论 -
leetcode 947移走最多的石头
题目:On a 2D plane, we place stones at some integer coordinate points. Each coordinate point may have at most one stone.Now, a move consists of removing a stone that shares a column or row with anoth...原创 2019-01-28 18:24:13 · 578 阅读 · 0 评论 -
leetcode 756矩阵转换金字塔
题目:ShareWe are stacking blocks to form a pyramid. Each block has a color which is a one letter string, like 'Z'.For every block of color C we place not in the bottom row, we are placing it on top o...原创 2019-01-28 20:12:20 · 295 阅读 · 0 评论