码迷,mamicode.com
首页 >  
搜索关键字:redis sorted set有序集合 存储操作方法    ( 28209个结果
Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.思路:合并k个有序链表为一个有序链表。我们可以用先合并两个链表的方法,然后逐个遍历链表数组,与上一个合并结束...
分类:其他好文   时间:2014-05-12 15:07:06    阅读次数:305
yum 安装redis
今天学习redis时,用yum直接安装redis直接报错,后来百度一下得到一下解决方案。1:去下面的网站下载EPEL对应的版本:(epel是fedora维护的yum源,里面软件众多)http://fedoraproject.org/wiki/EPEL2:我下载的是这个:wget http://dl....
分类:其他好文   时间:2014-05-12 11:32:42    阅读次数:365
rlwrap:让控制台程序使用input.rc里的设置
习惯了vi模式,在bash里配置input.rc可以使平时命令行操作都使用vi习惯,翻页和跳动光标都很方便但是当运行一些交互式程序时,比如redis-cli,lua等,它们却不按input.rc的配置来读取输出,经常快捷键操作出现乱码这是因为它们自己没有使用readline库来读取命令行输入解决办法...
分类:其他好文   时间:2014-05-12 11:05:01    阅读次数:264
阿里云64位centos6.3系统上编译安装redis
环境系统:阿里云64位centos 6.3[rao@AY~]$ cat /etc/issueCentOS release 6.3 (Final)Kernel \r on an \m[rao@AY~]$ uname -aLinux AY1404062027584053a1Z 2.6.32-358.6....
分类:其他好文   时间:2014-05-12 09:27:33    阅读次数:510
【LeetCode】Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:其他好文   时间:2014-05-12 07:31:40    阅读次数:332
ubuntu kylin 14.04安装配置redis-2.8.9(转)
1.下载安装文件加压、编译和安装cd /tmpwget http://download.redis.io/releases/redis-2.8.9.tar.gztar -zxf redis-2.8.9.tar.gzcd redis-2.8.9makesudo make install这时Redis ...
分类:其他好文   时间:2014-05-10 22:29:44    阅读次数:432
LeetCode Insertion Sort List
class Solution {public: ListNode *insertionSortList(ListNode *head) { if (head == NULL) return NULL; ListNode* sorted_head = head; ...
分类:其他好文   时间:2014-05-10 20:39:14    阅读次数:419
Redis的Client设计
Redis的client设计如下: /* With multiplexing we need to take per-clinet state. * Clients are taken in a liked list. */ typedef struct redisClient { int fd; redisDb *db; int dictid; sds que...
分类:其他好文   时间:2014-05-10 03:44:21    阅读次数:292
[傻瓜版] Redis在Windows下的开发环境配置步骤
redis默认运行在unix体系下,windows无法直接运行官方版.以下是几种解决方案,一)Windows移植版.启动速度飞快,优先推荐使用. a)2.6.12 是稳定版,我用来64位版做开发环境,数个月未发现重要问题. 下载地址:https://github.com/MSOpenTech/re....
分类:Windows程序   时间:2014-05-09 23:57:42    阅读次数:671
Leetcode | Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-05-09 23:26:18    阅读次数:353
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!