Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-03-15 13:43:07
阅读次数:
134
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
题意:去掉重复的区间。
思路:排序后,再比较end的情况。
/**
* Definition fo...
分类:
其他好文 时间:
2015-03-15 00:52:06
阅读次数:
132
Building a Space StationTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged on PKU. Original ID: 2031 64-bit integer IO fo...
分类:
其他好文 时间:
2015-03-12 22:16:42
阅读次数:
138
题目:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the fo...
分类:
其他好文 时间:
2015-03-11 17:19:41
阅读次数:
143
Treats for the Cows
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4264
Accepted: 2155
Description
FJ has purchased N (1
The treats are interesting fo...
分类:
其他好文 时间:
2015-03-11 14:58:38
阅读次数:
261
Description
You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of indices i and j (1
≤ i ≤ j ≤ n). Fo...
分类:
其他好文 时间:
2015-03-11 00:44:27
阅读次数:
145
for (NSString *fontFamily in [UIFont familyNames]) { NSLog(@"字体家族是:%@",fontFamily); for(NSString *fontName in [UIFont fontNamesForFamilyName:fo...
分类:
移动开发 时间:
2015-03-09 22:06:25
阅读次数:
142
这是一道简单的编程,随机的生成四则运算,不过还是不是很完美,还有一些欠缺!源代码:#include#include#includevoid main(){ int a,b,i,op,r;//r记录回答结果 int flag=1; while(flag) { fo...
分类:
其他好文 时间:
2015-03-07 19:59:46
阅读次数:
132
Why I choose to be a graduate student from an undergraduate student?It’s time to applying for internships. Recalling this time last year, how I beg fo...
分类:
其他好文 时间:
2015-03-06 21:57:16
阅读次数:
144
1. 安装SVN yum -y install subversion2. 创建版本库目录 mkdir /root/svn/ svnserve -d -r /root/svn/3. 创建版本库 svnadmini create /root/svn/www.food.com 这时www.fo...
分类:
系统相关 时间:
2015-03-06 12:24:52
阅读次数:
154