Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.经典实现题。/**...
分类:
其他好文 时间:
2015-05-13 08:42:20
阅读次数:
97
We can run graphical programs on Linux/Solaris machines on campus remotely and display them on your desktop computer running Windows. We can do this by using running two applications together on your W...
分类:
其他好文 时间:
2015-05-11 17:54:32
阅读次数:
539
Problem Description
Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together.
...
分类:
其他好文 时间:
2015-05-11 14:53:46
阅读次数:
130
Graph visualization library in JavaScriptI've just put together what you may be looking for: http://www.graphdracula.netIt's JavaScript with directed ...
分类:
编程语言 时间:
2015-05-11 14:34:24
阅读次数:
150
题目描述:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.解题思路...
分类:
编程语言 时间:
2015-05-10 21:54:00
阅读次数:
124
Problem:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
Solution:
两个有序链表,每次取头部最小的那个元素,然后将这个元素从原来链表...
分类:
编程语言 时间:
2015-05-10 19:03:44
阅读次数:
119
SOJ1678, Mountains,数论,递推,二分
A mountain consists of one or more hills, each of which consists of upwards, which we denote with `/', and downwards, which we denote with '\'. We call upwards and downwards together as wards. Let /n be an upward of length n, an...
分类:
其他好文 时间:
2015-05-09 10:19:14
阅读次数:
194
SOJ1678, Mountains,数论,递推,二分
A mountain consists of one or more hills, each of which consists of upwards, which we denote with `/', and downwards, which we denote with '\'. We call upwards and downwards together as wards. Let /n be an upward of length n, an...
分类:
其他好文 时间:
2015-05-09 10:18:56
阅读次数:
189
javascriptoop编程—实现继承的三种形式[1](1)模拟类的方式,我们都知道js是原型继承机制,不存在class和instance分离的这种方式假设,我们有两个类functionAnimal(){ this.name=“animal”; this.eat=function(){ consle.log(“eating"); }}functionCat(){ this.say=functi..
分类:
编程语言 时间:
2015-05-09 06:39:56
阅读次数:
307
【题目】
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
【分析】
不要忘记先判断两个链表是否有空链表。其余的使用递归和非递归...
分类:
其他好文 时间:
2015-05-08 14:58:11
阅读次数:
97