Originally, I installed an Ubuntu using Wubi on my company's laptop (Lenovo W520). One purpose is for fun, the other is to use some instant messengers...
分类:
其他好文 时间:
2014-06-30 12:26:40
阅读次数:
326
《这是一篇童话》——刘丁宁
就像安徒生童话《野天鹅》里的小公主爱丽莎,为了十一个哥哥,可以不说一句话,甘之如饴地赤脚踏过荆棘,空手采摘荨麻,日夜不停地编织十一件大衣,宁愿被人当做巫师差点活活烧死……
也如冬小麦,秋种,越冬,春季返青,夏季收粮,等待属于自己的那个“one summer's day”那个夏天……
童话的意思,一是孩子说的话,不必放在心上;二是童话的意蕴:“过程也许会坎坷,但结局...
分类:
其他好文 时间:
2014-06-30 10:07:05
阅读次数:
141
【题目】
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet", "code"].
Return true because "leetcode" can be segm...
分类:
其他好文 时间:
2014-06-30 09:02:26
阅读次数:
276
题目
Clone an undirected graph. Each node in the graph contains a label and
a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separa...
分类:
其他好文 时间:
2014-06-30 09:01:23
阅读次数:
197
昨晚,把pomelo的聊天示例搭建到公网了,感觉还是有很多坑,记录一下。先上最后的效果图。
体验地址:http://chat.xiaodao.co/
搭建步骤:
准备一个有公网IP的机子,我用的是Linode
1024的Ubuntu 14.04 LTS。
这里按照我的机子IP:178.79.185.180,和我的安装目录/opt来讲,你...
分类:
其他好文 时间:
2014-06-30 06:26:28
阅读次数:
287
在我们安装RAC的时候,有时候会因为种种报错装上了错误的ASM实例或者LISTENER监听,或者说加入了CLUSTERWARE资源,但是并没有真正起作用,如:
如图所示,这里在2个节点分别创建过ASM1和ASM2实例,对应的资源名称分别为ora.RAC1.ASM1.asm和ora.RAC2.ASM2.asm,他们的状态都是UNKONW的,还有每个节点都创建了3个监听,资源名称分别是节...
分类:
其他好文 时间:
2014-06-30 00:27:02
阅读次数:
154
【题目】
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
【题意】
给定一个单向链表,如果链表有环,则返回环开始的位置。
【思路】
仍然是维护两个指针, p1, p2, p1每次走一步, p2每次走两步
...
分类:
其他好文 时间:
2014-06-29 23:59:21
阅读次数:
354
【题目】
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
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-06-29 20:28:58
阅读次数:
183
Almost one year ago, I checked how different cache settings affected KVM storage subsystem performance. Results were very clear: to obtain good I/O sp...
分类:
系统相关 时间:
2014-06-29 19:47:59
阅读次数:
448