题目链接Problem discriptionGiven two sorted integer
arrays A and B, merge B into A as one sorted array.Note:You may assume that A
has enough space (size t...
分类:
其他好文 时间:
2014-06-16 11:12:36
阅读次数:
192
原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/题意:Given
a sorted linked list, delete all nodes that have duplicate number...
分类:
编程语言 时间:
2014-06-16 10:40:35
阅读次数:
340
AnIntentis an object that provides runtime
binding between separate components (such as two activities).
Theintentrepresents an app’s "intent to do so...
分类:
移动开发 时间:
2014-06-16 10:00:27
阅读次数:
248
wa了十次,原来变量名写错。二维树状数组。 1 #include 2 #include 3 4
#define MAXN 1002 5 6 int nums[MAXN][MAXN]; 7 8 void swap(int *x, int *y) { 9
int tmp;10 ...
分类:
其他好文 时间:
2014-06-16 08:34:51
阅读次数:
216
【Swift初步】1、第一个swift程序。 You don’t need to import
a separate library for functionality like input/output or string handling. Code
written at global s...
分类:
其他好文 时间:
2014-06-16 08:30:56
阅读次数:
204
参看别人的思路,类似MergeSort的思路,思路是先分成两个子任务,然后递归求子任务,最后回溯回来。这个题目也是这样,先把k个list分成两半,然后继续划分,直到剩下两个list就合并起来,合并时会用到Merge
Two Sorted Lists这道题。 1 /** 2 * Definition....
分类:
其他好文 时间:
2014-06-16 08:26:57
阅读次数:
150
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The
gray code is a binary numeral system where two successive values differ in only
one bit.Given a...
分类:
编程语言 时间:
2014-06-16 07:42:27
阅读次数:
242
Whereas, large financial institutions have been
TSX darlings; increasing the sector’s equity capitalization by C$178 billion
over the same period.clay...
分类:
其他好文 时间:
2014-06-13 19:08:42
阅读次数:
333
Swap Nodes in Pairs:Given a linked list, swap every
two adjacent nodes and return its head.For example,Given1->2->3->4, you
should return the list as2...
分类:
其他好文 时间:
2014-06-13 17:04:27
阅读次数:
180