198. House Robber 202. Happy Number 204. Count Primes 219. Contains Duplicate II 固定窗口滑动 219. Contains Duplicate II 固定窗口滑动 class Solution { public: boo ...
分类:
其他好文 时间:
2018-10-04 10:54:52
阅读次数:
131
今天博主立下一个flag,必须要开始好好解决DP问题!!LC现在DP系列有117题,现在从易到难的顺序重走这117之路。 今天坐在Victoria coffee 里面从第一个最简单的paint house问题解决开始。 ps:这里都是博主自己做题时的思考过程,不是大神讲解,欢迎指正缺陷和错误。 Pa ...
分类:
其他好文 时间:
2018-09-30 14:56:14
阅读次数:
153
https://www.cnblogs.com/lightwindy/p/8648410.html ...
分类:
其他好文 时间:
2018-09-15 22:04:27
阅读次数:
150
"题目链接戳这里" 题目描述 You live in a village but work in another village. You decided to follow the straight path between your house (A) and the working place ...
分类:
其他好文 时间:
2018-09-06 02:47:09
阅读次数:
239
1. 修改2. $ git stash save 'chm1' 把本地的修改暂存起来,并且给本次暂存备注“chm1”3. $ git checkout v.duohuozhu.0801 切换到别的分支4. $ git checkout v.house.0827 切换回本分支5. $ git stas ...
分类:
其他好文 时间:
2018-08-27 21:43:35
阅读次数:
114
Uva12230Crossing Rivers 问题: You live in a village but work in another village. You decided to follow the straight path between your house (A) and the ...
分类:
其他好文 时间:
2018-08-26 01:24:58
阅读次数:
202
Problem Description There is an apple tree in front of Taotao's house. When autumn comes, n apples on the tree ripen, and Taotao will go to pick these ...
分类:
移动开发 时间:
2018-08-16 21:02:19
阅读次数:
223
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 certai ...
分类:
其他好文 时间:
2018-08-16 14:02:59
阅读次数:
152
对于Thread(Runnable target)构造方法创建的线程,轮到它来享用CPU资源时,目标对象就会自动调用接口中的run()方法,因此,对于使用同一目标对象的线程,目标对象的成员变量自然就是线程共享的数据单元。 下面的例子中,房屋就是线程的目标对象,房屋中的一桶水被猫和狗共享。 House ...
分类:
其他好文 时间:
2018-08-16 13:58:24
阅读次数:
157
class BlackMedium: feature='Ugly' def __init__(self,name,addr): self.name=name self.addr=addr def sell_house(self): print('%s 黑中介卖房子啦,傻逼才买呢,但是谁能证明自己不傻 ...
分类:
编程语言 时间:
2018-08-10 19:38:17
阅读次数:
136