Classic and challenging DP! And you need combine several tricks together with DP to make it 100% pass.My main reference is here:https://github.com/hav...
分类:
其他好文 时间:
2015-06-09 06:12:07
阅读次数:
127
Merge k Sorted Lists
题目:
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. 题意:
合并k个已经排序过的链表。 思路:...
分类:
其他好文 时间:
2015-06-07 13:55:16
阅读次数:
150
适配器模式:
将一个类的接口转换成另外一个期望的类的接口。适配器允许接口互不兼容的类一起工作。Convert the interface of a class into another interface clients expect.
Adapter lets classes work together that couldn't otherwise because of
incompati...
分类:
其他好文 时间:
2015-06-07 13:53:29
阅读次数:
169
求LIS , 然后用 n 减去即为answer----------------------------------------------------------------------------#include#include#include#include#define rep( i , n ...
分类:
其他好文 时间:
2015-06-06 13:26:08
阅读次数:
235
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.
我的解决方案:
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2015-06-05 22:39:58
阅读次数:
167
Merge Two Sorted Lists
题目:
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-06-05 14:05:27
阅读次数:
107
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./** * Def...
分类:
其他好文 时间:
2015-05-30 00:36:48
阅读次数:
184
LeetCode 21:
Merge Two Sorted Lists
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-28 09:37:48
阅读次数:
200