Problem Description:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null...
分类:
其他好文 时间:
2014-07-07 16:19:01
阅读次数:
188
总论:linux的文件系统设计非常优秀,总的来讲有两大部分,第一部分就是树形的组织结构,第二部分就是vfs,树形的组织结构组织了文件系统的表象,用户非常方便的使用,而vfs是文件系统的实现机理,它处于内核态,不但实现了树形结构的mount机制,并且还提供了一个统一的接口用来訪问设备。一、Linux文...
分类:
系统相关 时间:
2014-07-07 15:43:27
阅读次数:
240
tune2fs是调整和查看linux文件系统的文件系统参数,Windows下面如果出现意外断电死机情况,下次开机一般都会出现系统自检。Linux系统下面也有文件系统自检,而且是可以通过tune2fs命令,自行定义自检周期及方式。二.用法:tune2fs [ -l ] [ -c max-mount-c...
分类:
系统相关 时间:
2014-07-07 13:48:22
阅读次数:
213
很久没写博文,今天刚好有同事问到:NGUI为什么做的界面图片那么模糊,比美术给的图片相比不是很清晰。
其实这个问题解决方法很简单,只要把NGUI生成的图集的图片类型改成“GUI”或者“Advance”(去掉generate mip maps),而且Filter Mode都选择(Point)。
这样即可。...
分类:
其他好文 时间:
2014-07-01 09:00:07
阅读次数:
321
关键是在检测到手指移动的时候用mPath.quadTo的方法,android sdk解释是:
Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2). If no moveTo() call has been made fo...
分类:
移动开发 时间:
2014-07-01 08:07:39
阅读次数:
289
题目如下:
Maze Exploration
A maze of rectangular rooms is represented on a twodimensional grid as illustrated in figure 1a. Each point of thegrid is represented by a character. ...
分类:
其他好文 时间:
2014-07-01 06:57:08
阅读次数:
231
题目
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
方法
publi...
分类:
其他好文 时间:
2014-06-30 19:36:33
阅读次数:
163
题目
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
方法
每次选择一个点,和其他n - 1个点,进行判断,统计最多的。
double computeSlope(Point a, Point b) {
...
分类:
其他好文 时间:
2014-06-30 15:48:45
阅读次数:
184
1.开机按shift或esc先进行recovery模式2.选择root命令行模式3.先执行#mount -o remount,rw /这个很重要,网上找的很多资料都不全没有这步造成无法恢复成功。因为recovery模式默认是以只读模式挂载的,如果不执行这句的话会报4.执行#chown root:ro...
分类:
系统相关 时间:
2014-06-30 15:00:36
阅读次数:
304
【题目】
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
【题意】
给定一个链表,每个节点除了next指针外,还有一个random指针,指向任意的节点。
要求,复制这样的一个链表
【思路】
思路...
分类:
其他好文 时间:
2014-06-29 20:41:21
阅读次数:
232