码迷,mamicode.com
首页 >  
搜索关键字:redis sorted set有序集合 存储操作方法    ( 28209个结果
OpenResty--mysql,redis 项目中的应用
最近刚刚接手同事的OpenResty的项目,发现对mysql,redis的操作没有用连接池,故对此进行了改造。MYSQL主要是通过mysql_pool.lua 和 dbutil.lua 来封装对数据库的操作mysql_pool.lua: 1 module("mysql_pool", package....
分类:数据库   时间:2014-07-07 21:44:07    阅读次数:591
LeetCode::Remove Duplicates from Sorted List II [具体分析]
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:其他好文   时间:2014-07-07 16:17:00    阅读次数:139
nodejs + redis/mysql 连接池问题
nodejs + redis/mysql 连接池问题
分类:数据库   时间:2014-07-07 15:05:22    阅读次数:301
leetcode - Merge Two Sorted Lists
题目:Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the ...
分类:其他好文   时间:2014-07-07 14:06:19    阅读次数:221
[leetcode] Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?
分类:其他好文   时间:2014-07-07 13:07:00    阅读次数:153
[leetcode] Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?
分类:其他好文   时间:2014-07-03 11:51:05    阅读次数:117
[leetcode] Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once.
分类:其他好文   时间:2014-07-02 00:33:49    阅读次数:204
redis源码解析之事件驱动
Redis 内部有个小型的事件驱动,它主要处理两项任务:
分类:其他好文   时间:2014-06-30 12:02:01    阅读次数:208
二分法查找 --JS 实现
var indexOfSorted = function f(arr,n){ //assume : arr has been sorted var low = 0; var high = arr.length - 1; var mid = (low + high) / 2; while(high - low > 1){ if(n == arr[low]){return low...
分类:Web程序   时间:2014-06-30 08:54:10    阅读次数:978
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 O(log (m+n)). 方法 转换为寻找第k大的数。 ...
分类:其他好文   时间:2014-06-30 06:05:58    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!