Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:
其他好文 时间:
2014-08-22 22:22:09
阅读次数:
233
/*#include
using namespace std;
*//**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
cla...
分类:
其他好文 时间:
2014-08-22 19:46:39
阅读次数:
147
Sum
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10160
Accepted: 6674
Description
Consider the natural numbers from 1 to N. By associating to each num...
分类:
其他好文 时间:
2014-08-22 17:55:49
阅读次数:
179
Description
We are given a rooted tree of n vertices. The vertices are to be labeled with numbers
1, 2,..., n so that each label is unique and the heap condition holds, i.e. the label of any verte...
分类:
其他好文 时间:
2014-08-22 17:53:39
阅读次数:
264
Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums
to T.
The same repeated number may be chosen ...
分类:
其他好文 时间:
2014-08-22 16:24:19
阅读次数:
202
//php 控制器文件'12333','a2'=>'2222222','a3'=>'333333','a4'=>'3333333');$smarty->assign($qq_numbers);$smarty->assign('title','这是我的QQ号码');$smarty->assign('c...
分类:
其他好文 时间:
2014-08-22 12:08:16
阅读次数:
131
DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or p...
分类:
其他好文 时间:
2014-08-22 00:19:05
阅读次数:
195
特性一:函数可以穿出不固定的同一种类型的参数(参数的个数不固定)example:“func sumOf(numbers: Int...) -> Int { var sum = 0 for number in numbers { sum += number } r...
分类:
编程语言 时间:
2014-08-22 00:06:35
阅读次数:
301
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below....
分类:
其他好文 时间:
2014-08-21 21:11:24
阅读次数:
213
思路: 枚举
Reduced ID Numbers
Time Limit: 2000MS Memory Limit: 65536K
Total Submissions: 8847 Accepted: 3552
Description
T. Chur teaches various groups of students at university U. Every U-student ...
分类:
其他好文 时间:
2014-08-21 17:24:04
阅读次数:
166