以前我一直以为File#renameTo(File)方法与OS下面的 move/mv 命令是相同的,可以达到改名、移动文件的目的。不过后来经常发现问题:File#renameTo(File)方法会返回失败(false),文件没有移动,又查不出原因,再后来干脆弃用该方法,自己实现一个copy方法,问题...
分类:
编程语言 时间:
2015-02-04 20:09:30
阅读次数:
235
【题目】
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down o...
分类:
其他好文 时间:
2015-02-04 16:34:20
阅读次数:
140
【题目】
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to...
分类:
其他好文 时间:
2015-02-03 23:00:26
阅读次数:
249
http://no-fucking-idea.com/blog/2012/03/23/using-eredis-in-erlang/Using Eredis, Redis With ErlangMAR 23RD, 2012|COMMENTSRecently i decided to move my ...
分类:
其他好文 时间:
2015-02-03 14:44:45
阅读次数:
186
【题目】
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 following triangle
[
[2],
[...
分类:
其他好文 时间:
2015-02-03 11:07:52
阅读次数:
148
//寻路
typedef struct _Move_Struct
{
float x;
float y;
float z;
ULONG MapId; //?
}Move_Struct, *PMove_Struct;
void MoveToCoord(float x, float y, float z)
{
__try
...
分类:
其他好文 时间:
2015-02-03 09:28:18
阅读次数:
399
永远别把事情堵在心上,事情只会越堵越多,解决的越来越少,生不带来,死不带去,不上火。 THINK BEFORE MOVE . 到公司的时候就会有一种漫不经心,昏昏欲睡,支支吾吾,心里想的是不紧不慢的工作方式,要记住的是,我不是来混日子的。 根本就没有准备好,只是赶鸭子上架,来那么一下子,而有的人经....
分类:
其他好文 时间:
2015-02-03 00:40:59
阅读次数:
171
本文是在学习中的总结,欢迎转载但请注明出处:
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43404205
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at a...
分类:
其他好文 时间:
2015-02-02 09:37:48
阅读次数:
177
链表环状检测主要有三种方法: 1、追赶法;如 robinzsy。 2、外部记录法;如improgrammer。 3、内部记录法(打记号);如VivianSnow。 内部标记法和外部标记法其实是一个道理,不过就是辅助变量一个是在链表节点内,一个是借助辅助数组或者hash或者AV...
分类:
其他好文 时间:
2015-02-02 07:07:53
阅读次数:
285
题目链接:BZOJ - 1048题目分析感觉这种分割矩阵之类的题目很多都是这样子的。方差中用到的平均数是可以直接算出来的,然后记忆化搜索 Solve(x, xx, y, yy, k) 表示横坐标范围 [x, xx], 纵坐标范围 [y, yy] 的矩阵切成 k 块的最小 sigma((Vi - Av...
分类:
其他好文 时间:
2015-01-31 12:07:51
阅读次数:
204