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
按顺序依次为秒(0~59)分钟(0~59)小时(0~23)天(月)(0~31,但是你需要考虑你月的天数)月(0~11)天(星期)(1~7 1=SUN 或
SUN,MON,TUE,WED,THU,FRI,SAT)7.年份(1970-2099)其中每个元素可以是一个值(如6),一个连续区间(9-12),...
分类:
其他好文 时间:
2014-06-03 09:10:32
阅读次数:
237
现象:网站访问越来越慢,最后无法访问了,经过检查发现磁盘满了分析过程及解决方案:通常出现这种问题都应该登录服务器检查磁盘、内存和进程使用的情况,通过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
使用 ps 命令查看 目标进程的 pid,比如说是 1200,然后kill -3 1200在
/data/anr/traces.txt 中就能找到 进程 1200 中各线程的stack trace
分类:
移动开发 时间:
2014-05-31 13:47:40
阅读次数:
434
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
可把下面代码直接贴在空白窗体上, 以快速完成窗体设计:object DBGrid1:
TDBGrid Left = 0 Top = 0 Width = 265 Height = 338 Align = alLeft DataSource =
DataSource1 TabOrder =...
分类:
数据库 时间:
2014-05-29 22:02:52
阅读次数:
666
整体介绍: Aliyun Cloud Engine (以下简称ACE)提供基于PHP
5.3.5的运行环境(Runtime
Environment),支持标准的关系型数据库、Memcache、Cron、Session、storage,同时增加一些高级特性来满足开发者的需求。ACE选择PHP作为...
分类:
Web程序 时间:
2014-05-29 18:23:09
阅读次数:
384