一、Redis概述 1.1、什么是Redis Redis是一种高级key-value数据库。它跟memcached类似,不过数据 可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis ...
分类:
其他好文 时间:
2016-08-29 22:27:38
阅读次数:
198
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:
其他好文 时间:
2016-08-29 08:04:09
阅读次数:
243
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-08-29 06:55:30
阅读次数:
397
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-08-29 01:44:35
阅读次数:
230
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c ...
分类:
其他好文 时间:
2016-08-25 23:48:23
阅读次数:
163
http://stackoverflow.com/questions/1050222/concurrency-vs-parallelism-what-is-the-difference Concurrency is when two or more tasks can start, run, and ...
分类:
其他好文 时间:
2016-08-25 20:25:59
阅读次数:
127
set是一个无序且不重复的元素集合 s1 = set(["tom","jak","cat","tom"])print (s1) #结果: {'tom', 'jak', 'cat'} .add() 增加一个新元素 例子: .clear() 清空所有元素 例子: .difference() 取两个set ...
分类:
编程语言 时间:
2016-08-24 19:25:43
阅读次数:
393
"self-service networking" allows users to create their own virtual networks, subnets, routers, etc., where as the "provider networking" does not allow ...
分类:
Web程序 时间:
2016-08-24 19:07:50
阅读次数:
581
题目大意:给你几个数字,选出一些数字组成一个整数,另外的组成另一个整数,求这两个数差的绝对值的最小值 Input The first line of input contains the number of cases to follow. For each case, there is one l ...
分类:
其他好文 时间:
2016-08-24 15:51:05
阅读次数:
199
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that i ...
分类:
其他好文 时间:
2016-08-24 00:56:04
阅读次数:
129