1 class Solution { 2 public int rob(int[] nums) { 3 int n = nums.length; 4 int[] res = new int[n]; 5 if(n == 0) return 0; 6 if(n == 1) return nums[0];... ...
分类:
其他好文 时间:
2018-08-08 00:33:38
阅读次数:
164
Questions: [LeetCode] 198. House Robber _Easy tag: Dynamic Programming [LeetCode] 221. Maximal Square _ Medium Tag: Dynamic Programming [LeetCode] 62. ...
分类:
其他好文 时间:
2018-08-07 01:33:58
阅读次数:
141
1、依赖是类与类之间的联接。依赖关系表示一个类依赖于另一个类的定义。例如,一个人(Person)可以买车(car)和房子(House),Person类依赖于Car类和House类的定义,因为Person类引用了Car和House。与关联不同的是,Person类里并没有Car和House类型的属性,C ...
分类:
编程语言 时间:
2018-08-05 17:00:22
阅读次数:
126
There is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefu ...
分类:
移动开发 时间:
2018-08-03 18:07:31
阅读次数:
198
# info=[# {# 'xiaohei':{# 'money':100000,# 'car':['ben-z','audi','BWM'],# 'info':{# 'phone':18617042014,# 'age':36,# }# }# },# {'xiaohong':# {# 'house ...
分类:
其他好文 时间:
2018-08-03 01:10:50
阅读次数:
139
Farmer John's family pitches in with the chores during milking, doing all the chores as quickly as possible. At FJ's house, some chores cannot be star ...
分类:
其他好文 时间:
2018-08-02 22:52:26
阅读次数:
175
问题描述: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is differe ...
分类:
其他好文 时间:
2018-07-16 11:29:57
阅读次数:
224
问题描述: There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a ...
分类:
其他好文 时间:
2018-07-16 11:29:43
阅读次数:
194
House RobberⅠ You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constrai ...
分类:
其他好文 时间:
2018-07-15 19:34:47
阅读次数:
162
CSS 网格布局(Grid Layout) 是CSS中最强大的布局系统。 这是一个二维系统,这意味着它可以同时处理列和行,不像 flexbox 那样主要是一维系统。 你可以通过将CSS规则应用于父元素(成为网格容器)和该元素的子元素(网格元素),来使用网格布局。 本文出自于 Chris House ...
分类:
其他好文 时间:
2018-07-13 15:12:16
阅读次数:
225