Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.罗马数字的组数规则,有几条须注意掌握;(1)基本数字Ⅰ、...
分类:
其他好文 时间:
2015-01-03 18:28:19
阅读次数:
174
因为网上有一篇很好的RMQ的入门帖子http://lostechies.com/derekgreer/tag/rabbitmq/,所以我就不多说了,就说说我目前看了该作者1~5章后,自己的心得。(所以要看懂我写的内容,需要看完那个作者写的1~5章。你可以先跳过这一篇,因为我后面的博文会依次分析该作者...
分类:
其他好文 时间:
2015-01-03 10:39:00
阅读次数:
86
RabbitMQ for Windows: Building Your First ApplicationPosted byDerek GreeronMarch 7, 2012This is the second installment to the RabbitMQ for Windows ser...
分类:
其他好文 时间:
2015-01-03 10:35:49
阅读次数:
391
这道题没什么好说的,二分法查找class Solution {public: vector range; vector searchRange(int A[], int n, int target) { range.push_back(-1); range.push_b...
分类:
其他好文 时间:
2015-01-01 17:19:32
阅读次数:
135
顺序查找适用范围: 没有进行排序的数据序列缺点: 速度非常慢, 效率为O(N)//实现
template
Type *sequenceSearch(Type *begin, Type *end, const Type &searchValue)
throw(std::range_error)
{
if ((begin == end) || (begin == NULL) || (end ...
分类:
其他好文 时间:
2015-01-01 11:16:26
阅读次数:
188
Given two values k1 and k2 (where k1 searchRange(TreeNode root, int k1, int k2) {19 ArrayList res = searchRangeRecur(root,k1,k2);20 r...
分类:
其他好文 时间:
2015-01-01 01:28:39
阅读次数:
135
NSUrlConnection实现断点续传的关键是自定义http request的头部的range域属性。 Range头域 Range头域可以请求实体的一个或者多个子范围。例如, 表示头500个字节:bytes=0-499 表示第二个500字节:bytes=500-999 表示最后500个字...
分类:
移动开发 时间:
2015-01-01 00:03:54
阅读次数:
184
Missing RangesGiven a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, ...
分类:
其他好文 时间:
2014-12-31 17:39:21
阅读次数:
110
多条件情况查询SELECT Title, 'Price Range' = CASE WHEN price IS NULL THEN 'Unpriced' WHEN price < 10 THEN 'Bargain' WHEN price BETWEEN 10 and 20 THEN 'Averag....
分类:
数据库 时间:
2014-12-31 15:54:35
阅读次数:
187
题目大意:求n个矩形搭出n级阶梯的方案数
那个什么空心不能向上完全是逗你的- -
卡特兰数的应用之一- - Wiki上有说- - 具体证明不会- -
总之Python大法好- -
n=int(raw_input())
temp=1
for i in range (1,n+1):
temp=temp*(4*i-2)/(i+1)
print temp...
分类:
其他好文 时间:
2014-12-31 13:04:45
阅读次数:
133