Givens1,s2,s3, find whethers3is formed by the
interleaving ofs1ands2.For
example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.Whens3="...
分类:
其他好文 时间:
2014-06-03 14:05:46
阅读次数:
177
我会点什么吗?
会点Emacs。能看点Java。知道点C的语法。我要做什么呢?觉得Emacs并不足够,想看看Idea是如何工作的(他对Java的支持很好,而且还支持ruby
python,最近好像又在开发C++的环境)。我该如何开始呢?Idea中有Vim的插件,或许可以从他那里入手的吧。(就像是Ec...
分类:
其他好文 时间:
2014-06-03 12:14:29
阅读次数:
256
Emacs和Vim都是程序员专用编辑器,Emacs被称为神的编辑器,Vim则是编辑器之神。至于两者到底哪个更好用,网络上两大派系至今还争论不休。不过,相比之下,Emacs更加复杂,已经不能算是一个编辑器了,有人这么说:Emacs是伪装成编辑器的操作系统。与之相反,Vim的定位很明确,就是要做一个强大...
分类:
其他好文 时间:
2014-05-30 22:03:11
阅读次数:
505
find k missing numbers from 1 to n. (k>=1)
分类:
其他好文 时间:
2014-05-30 21:41:26
阅读次数:
593
Ubuntusudo apt-get install nfs-kernel-serversudo
apt-get install rpcbindsudo vim /etc/exports/home/xxx *(rw, sync,
no_root_squash)sudo /etc/init.d/nfs...
分类:
其他好文 时间:
2014-05-30 16:40:55
阅读次数:
212
Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight line./** * Definition for a
point. * struct Point { * ...
分类:
其他好文 时间:
2014-05-30 16:27:19
阅读次数:
238
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-05-30 16:20:32
阅读次数:
229
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-30 16:19:05
阅读次数:
320
Given an array of integers, every element
appearstwiceexcept for one. Find that single one.Note:Your algorithm should have
a linear runtime complexity...
分类:
其他好文 时间:
2014-05-30 16:16:29
阅读次数:
190
Given a binary tree, find the maximum path
sum.The path may start and end at any node in the tree.For example:Given the
below binary tree, 1 ...
分类:
其他好文 时间:
2014-05-30 16:10:54
阅读次数:
185