问题描述
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remai...
分类:
其他好文 时间:
2015-04-16 14:22:29
阅读次数:
208
郭式树Time Limit:2000MSMemory Limit:128000KB64bit IO Format:%lld & %lluSubmitStatusPracticeACdream 1061Description郭橐驼,不知始何名。病偻,隆然伏行,有类橐驼者,故乡人号之驼。驼闻之,曰:“甚...
分类:
其他好文 时间:
2015-04-16 14:11:16
阅读次数:
117
1782: [Usaco2010 Feb]slowdown 慢慢游Time Limit:1 SecMemory Limit:64 MBSubmit:570Solved:346[Submit][Status][Discuss]Description每天Farmer John的N头奶牛(1 x do d...
分类:
其他好文 时间:
2015-04-16 13:58:42
阅读次数:
114
- (void)cutGloable { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ UIGraphicsBegin...
分类:
移动开发 时间:
2015-04-16 13:50:02
阅读次数:
154
#手动选择路径,批量改名import os,re,time,tkFileDialogglobal i#文件名后面增加后缀:txt,png,bng,jpeg,jpg,gif,zip类型的文件def change_name(path,text): global i if not os.pat...
分类:
编程语言 时间:
2015-04-16 13:49:15
阅读次数:
124
Financial Management
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 157917
Accepted: 60395
Description
Larry graduated this year and finally has a job. He...
分类:
其他好文 时间:
2015-04-16 12:34:51
阅读次数:
130
Hangover
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 107377
Accepted: 52375
Description
How far can you make a stack of cards overhang a table? If you ...
分类:
其他好文 时间:
2015-04-16 10:20:29
阅读次数:
130
合并排序(0446)
Time limit(ms): 1000
Memory limit(kb): 65535
Submission: 1362
Accepted: 292
Accepted
这是一个很简单的排序题目.
为了锻炼大家对不同算法的了解,请大家用归并排序法对此题进行解答.
对一组整数数列A[1]...
分类:
编程语言 时间:
2015-04-16 09:11:03
阅读次数:
206
Palindrome Numbers
Time Limit: 2 Seconds Memory Limit: 65536 KB
A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name "anna" is a palind...
分类:
其他好文 时间:
2015-04-16 09:10:30
阅读次数:
143
定义下面两个类的成员函数(为体验友元类,实际上本例并不一定是一个好的设计,将两个类的合并为一个DateTime,日期、时间都处理更好)
class Date; //对Date类的提前引用声明
class Time
{
public:
Time(int,int,int);
void add_a_second(Date &); //增加1秒,1秒后可能会到了下一天,乃到下一月、下一...
分类:
其他好文 时间:
2015-04-16 09:09:03
阅读次数:
145