Given a string which contains only letters. Sort it by lower case first and upper case second. Notice It's NOT necessary to keep the original order of ...
分类:
其他好文 时间:
2016-04-06 08:10:40
阅读次数:
143
Reverse a linked list from position m to n. Notice Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length of list. Given m, n satisfy the foll ...
分类:
其他好文 时间:
2016-04-05 07:08:50
阅读次数:
136
Print numbers from 1 to the largest number with N digits by recursion. Notice It's pretty easy to do recursion like: recursion(i) { if i > largest num ...
分类:
其他好文 时间:
2016-04-04 16:16:25
阅读次数:
118
Given a list of integers, which denote a permutation. Find the previous permutation in ascending order. Notice The list may contains duplicate integer ...
分类:
其他好文 时间:
2016-04-04 16:15:46
阅读次数:
112
Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe ...
分类:
其他好文 时间:
2016-04-04 16:09:48
阅读次数:
122
Given n and k, return the k-th permutation sequence. Notice n will be between 1 and 9 inclusive. n will be between 1 and 9 inclusive. n will be betwee ...
分类:
其他好文 时间:
2016-04-04 14:29:20
阅读次数:
134
通性配置 定义Nginx运行的用户和用户组 user www www; nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; 全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log ...
分类:
其他好文 时间:
2016-04-03 11:42:18
阅读次数:
193
Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? Notice If landing and flying happen ...
分类:
其他好文 时间:
2016-04-02 08:25:54
阅读次数:
193
恢复内容开始 Given a list of integers, which denote a permutation. Find the next permutation in ascending order. Notice The list may contains duplicate inte ...
分类:
其他好文 时间:
2016-04-02 07:04:38
阅读次数:
164
Given a string source and a string target, find the minimum window in source which will contain all the characters in target. Notice If there is no su ...