和前两题已经关系不大了……是树的dfs,加上一个表track back ...
分类:
其他好文 时间:
2016-06-29 13:22:23
阅读次数:
167
区别就是用了两个数组,一个强行从第一个开始,一个强行从第二个开始 ...
分类:
其他好文 时间:
2016-06-29 07:47:48
阅读次数:
128
到某个位置的房子为止最大的收益,是“上个房子最大收益”和“上上个房子收益+本房子的收益”中比较大的那个 因为需要用到上上个房子的值,所以至少要有三个房子,所以一个房子的时候要单独处理 ...
分类:
其他好文 时间:
2016-06-29 06:41:53
阅读次数:
160
Problem: https://leetcode.com/problems/house-robber-ii/ After robbing those houses on that street, the thief has found himself a new place for his thi ...
分类:
其他好文 时间:
2016-06-25 21:36:54
阅读次数:
150
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 hou ...
分类:
其他好文 时间:
2016-06-25 20:21:15
阅读次数:
184
题目链接: B. Little Robber Girl's Zoo ...
分类:
其他好文 时间:
2016-06-24 10:32:09
阅读次数:
202
Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha ...
分类:
其他好文 时间:
2016-06-13 13:08:56
阅读次数:
122
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo ...
分类:
其他好文 时间:
2016-06-13 11:19:42
阅读次数:
117
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 hou ...
分类:
其他好文 时间:
2016-06-13 06:34:49
阅读次数:
154