题目Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window...
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-08-12 10:11:59
阅读次数:
231
该怎么办。 搞不懂自己。 不想放弃,可是。。 好傻。 我真的有那么好嘛?处处为别人着想。 是虚伪嘛? 今天查了下住房公积金,好少啊,想买房。 感觉毕业三年变化了好多。 曾经。。 现在。。 未来。。 搞不懂自己。一辈子。 睡觉奥。
分类:
其他好文 时间:
2015-08-12 00:59:42
阅读次数:
134
This problem can be solved by DP elegantly. You may refer to this link for the code and explanations.I try to rewrite the code, also in C++, but find ...
分类:
其他好文 时间:
2015-08-11 23:11:46
阅读次数:
102
[root@localhost ~]# mysql -uroot -p Enter password: ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (111) 解决方案: [root@localhost ~]# service ...
分类:
数据库 时间:
2015-08-11 19:30:51
阅读次数:
129
mysqldump导出备份后用mysq还原报错ERROR1005(HY000)atline1001:Can‘tcreatetable‘‘(errno:121)删除mysql的ibdata1、ib_logfile0、ib_logfile1再试试,记得备份哦。
分类:
数据库 时间:
2015-08-11 19:20:03
阅读次数:
172
在执行python脚本时报如下错误:UnicodeEncodeError:‘ascii‘codeccan‘tencodecharactersinposition1-5:ordinalnotinrange(128)解决办法importsys
reload(sys)
sys.setdefaultencoding(‘utf8‘)
分类:
Web程序 时间:
2015-08-11 19:04:28
阅读次数:
109
find . -name "*.rpm" -exec mv {} /root/rhevm-packages/ \;如何mount虚拟机的磁盘镜像: fdisk -ul /path/to/image You must set cylinders. You can do this from the ex...
分类:
系统相关 时间:
2015-08-11 18:33:58
阅读次数:
158
1. Introduction1.1"Customers own their data and we can be no more than the trsted stewards of that data".Ford CEO, Mark Fields, 2015U.S. government af...
分类:
其他好文 时间:
2015-08-11 17:55:18
阅读次数:
111
看到yii2.0源码中大量使用 /** * PHP getter magic method. * This method is overridden so that attributes and related objects can be accessed like prop...
分类:
其他好文 时间:
2015-08-11 15:32:35
阅读次数:
102