Problem Description:Sort a linked list inO(nlogn) time using constant space complexity.Solution: 1 public ListNode sortList(ListNode head) { 2 ...
分类:
其他好文 时间:
2014-07-07 16:48:00
阅读次数:
238
Problem Description:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Solution: 1 public bo....
分类:
其他好文 时间:
2014-07-07 16:08:01
阅读次数:
151
Problem Description:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more diction...
分类:
其他好文 时间:
2014-07-07 16:02:11
阅读次数:
219
先查看数据库逻辑名称:restore filelistonly from disk='D:/database.bak'然后恢复:restore database smsdb from disk = 'd:\smsdb.bak'with move '数据库逻辑名称' to 'C:\Progra...
分类:
数据库 时间:
2014-07-07 15:47:56
阅读次数:
318
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-07-07 15:30:23
阅读次数:
169
欢迎转载,转载请注明出处,徽沪一郎。楔子Spark计算速度远胜于Hadoop的原因之一就在于中间结果是缓存在内存而不是直接写入到disk,本文尝试分析Spark中存储子系统的构成,并以数据写入和数据读取为例,讲述清楚存储子系统中各部件的交互关系。存储子系统概览上图是Spark存储子系统中几个主要模块...
分类:
其他好文 时间:
2014-07-07 14:30:41
阅读次数:
304
原题: URAL 1091 http://acm.timus.ru/problem.aspx?space=1&num=1091题意:要求找出K个不同的数字使他们有一个大于1的公约数,且所有的数字都不能大于一个指定的数字S。解法:可以考虑每个S内的素数,此素数和它的所有倍数构成一个集合,则可以在这些集...
分类:
其他好文 时间:
2014-07-02 00:37:32
阅读次数:
253
The QCOW2 Image Format https://people.gnome.org/~markmc/qcow-image-format.html The QCOW image format is one of the disk image formats supported by the...
分类:
其他好文 时间:
2014-07-01 00:11:18
阅读次数:
421
前几天给一套LINUX下的RAC数据库打补丁升级,有一台机器更新失败了,相关的异常内容如下: Restoring "/u01/app/oracle/11.2.0/db_1" to the state prior to running NApply... Checking if OPatch ne.....
分类:
其他好文 时间:
2014-06-30 23:44:20
阅读次数:
617
1.前言紧接着我的上一篇博客进行磁盘管理操作:http://zhangfengzhe.blog.51cto.com/8855103/1430531我们已经对磁盘进行了分区,信息如下:[root@localhost~]#fdisk-l/dev/sdb
Disk/dev/sdb:1073MB,1073741824bytes
255heads,63sectors/track,130cylinders
Units=cylindersof16..
分类:
系统相关 时间:
2014-06-29 21:48:06
阅读次数:
420