Mergeksorted linked lists and return it as one
sorted list. Analyze and describe its
complexity.思路:合并k个有序链表为一个有序链表。我们可以用先合并两个链表的方法,然后逐个遍历链表数组,与上一个合并结束...
分类:
其他好文 时间:
2014-05-12 15:07:06
阅读次数:
305
1. dialyzer Dialyzer starts its analysis from
either debug-compiled BEAM bytecode or from Erlang source code. Dialyzer
可以分析*.erl和有debug-info的BEAM, Dia...
分类:
其他好文 时间:
2014-05-10 06:32:02
阅读次数:
253
题目:
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 separat...
分类:
其他好文 时间:
2014-05-09 22:31:35
阅读次数:
353
Given a binary tree, check whether it is a
mirror of itself (ie, symmetric around its center).For example, this binary tree
is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-05-09 09:28:18
阅读次数:
253
戳我去解题Given amxnmatrix, if an element is 0, set its
entire row and column to 0. Do it in
place.这题还是很简单的,就是有点坑,遍历矩阵的时候,每遇到0的时候,我们不能立即将所在行和列置0,否则,到最后矩阵所有...
分类:
其他好文 时间:
2014-05-09 08:51:57
阅读次数:
253
Discrete.Mathematics.and.Its.Applications这本书是离散数学的经典书籍,好好读一读,系统化一下自己的知识。
书本上会有介绍很多杰出的数学家,如高斯, 这样名垂青史的大人物。
不过读到263页的时候被一个年轻的脸孔震惊到了,看起来还像个中国人。名字叫:TERENCE TAO
于是细读一下,越读越是震惊,然后网上一查,才知道,原来人家早已大名鼎鼎,不过是本...
分类:
其他好文 时间:
2014-05-09 06:21:45
阅读次数:
327
Subversion 1.8 and IntelliJ IDEA 13Unlike its
earlier versions, Subversion 1.8 support uses the native command line client
instead of SVNKit to run co...
分类:
其他好文 时间:
2014-05-09 03:07:38
阅读次数:
257
1、Clone Graph
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...
分类:
其他好文 时间:
2014-05-09 02:17:58
阅读次数:
336
Chef and The Right Triangles
The Chef is given a list of N triangles. Each triangle is identfied by the coordinates of its three corners in the 2-D cartesian plane. His job is to figure out how m...
分类:
其他好文 时间:
2014-05-07 16:28:35
阅读次数:
314
.closest( selector )
Description: For
each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tre...
分类:
Web程序 时间:
2014-05-07 15:07:34
阅读次数:
380