Given amxngrid filled with non-negative
numbers, find a path from top left to bottom right whichminimizesthe sum of all
numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-06-04 20:57:08
阅读次数:
360
You are climbing a stair case. It takesnsteps
to reach to the top.Each time you can either climb 1 or 2 steps. In how many
distinct ways can you climb...
分类:
其他好文 时间:
2014-06-04 19:53:34
阅读次数:
173
现象:网站访问越来越慢,最后无法访问了,经过检查发现磁盘满了分析过程及解决方案:通常出现这种问题都应该登录服务器检查磁盘、内存和进程使用的情况,通过top、df
–h和free –m来检查,发现磁盘空间满了。再进一步通过du –sh对可以的目录进行检查,发现是mysql的binlog占用空间过大。清...
分类:
数据库 时间:
2014-06-03 08:20:56
阅读次数:
309
可以使用一下命令查使用内存最多的5个进程ps -aux | sort -k4nr | head
-n 5或者top (然后按下M,注意大写)可以使用一下命令查使用CPU最多的5个进程ps -aux | sort -k3nr | head -n 5或者top
(然后按下P,注意大写)
分类:
系统相关 时间:
2014-06-03 07:30:14
阅读次数:
301
转自:内存池设计与实现1. 内存池设计1.1
目的在给定的内存buffer上建立内存管理机制,根据用户需求从该buffer上分配内存或者将已经分配的内存释放回buffer中。1.2
要求尽量减少内存碎片,平均效率高于C语言的malloc和free。1.3 设计思路将buffer分为四部分,第1部分是...
分类:
其他好文 时间:
2014-05-31 17:49:57
阅读次数:
290
http://en.wikipedia.org/wiki/InitinitFrom
Wikipedia, the free encyclopediaThis article is about the Unix process. For the
pre-Mac OS X extension mecha...
分类:
系统相关 时间:
2014-05-31 11:09:02
阅读次数:
1323
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241
FTA - 维基百科,自由的百科全书FTA维基百科,自由的百科全书跳转至: 导航、
搜索FTA可以指:自由贸易协定(Free Trade Agreement)自由贸易区(Free Trade Area)美国联邦交通管理局(Federal
Transit Administration)故障树分析法(F...
分类:
其他好文 时间:
2014-05-29 19:18:04
阅读次数:
319
Hash functionFrom Wikipedia, the free
encyclopediaA hash function that maps names to integers from 0 to 15. There is a
collision between keys "John Sm...
分类:
其他好文 时间:
2014-05-29 15:10:45
阅读次数:
864