码迷,mamicode.com
首页 >  
搜索关键字:redis sorted set有序集合 存储操作方法    ( 28209个结果
Leetcode: Merge Two Sorted Lists
一点小错,两次过,基本思想是先比较头元素,哪个小就在哪个list的基础上插入,需要考虑两种不同的结束方式 1 /** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * int val; 5 *...
分类:其他好文   时间:2014-05-09 09:21:59    阅读次数:273
Leetcode:Search a 2D Matrix
戳我去解题Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted f...
分类:其他好文   时间:2014-05-09 08:27:24    阅读次数:241
Twenproxy介绍
Twemproxy is a proxy server that allows you to reduce the number of open connections to yourMemcached or Redis server. What is Twemproxy useful for? It can reduce the number of connections t...
分类:其他好文   时间:2014-05-09 06:30:25    阅读次数:258
LeetCode OJ - Merge Sorted Array
原地归并。下面是AC代码: 1 public void merge(int A[], int m, int B[], int n) { 2 3 int len = A.length; 4 //first copy m elements of A...
分类:其他好文   时间:2014-05-09 05:59:54    阅读次数:297
ecshop 微信支付插件
目前已完成支付测试,能够支付成功,支付逻辑自己实现;后台通知、发货通知、订单查询未测。 其中用的redis,可以不用 下载...
分类:微信   时间:2014-05-09 00:39:50    阅读次数:626
LeetCode -- Remove Duplicates from Sorted List
题目链接简单题,就是从单链表中删除重复元素。附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * L...
分类:其他好文   时间:2014-05-08 18:02:52    阅读次数:338
从零开始——Ubuntu系统安装redis和phpredis
在我们部署redis之前,先了解下redis到底是个啥东西。 redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、 list(链表)、set(集合)和zset(有序集合)。这些数据类型都支持push/pop、add/r...
分类:Web程序   时间:2014-05-08 17:58:16    阅读次数:431
Redis 的安装配置介绍
redis是一个高性能的key-value数据库。redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。问题是这个项目还很新,可能还不足够稳定,而且没有在实际的一些大..
分类:其他好文   时间:2014-05-08 16:47:44    阅读次数:397
leetcode第一刷_Convert Sorted List to Binary Search Tree
好,二叉搜索树粉末登场,有关他的问题有这么几个,给你一个n,怎样求所有的n个节点的二叉搜索树个数?能不能把所有的这些二叉搜索树打印出来? 这道题倒不用考虑这么多,直接转就行了,我用的思想是分治,每次找到一半的位置,分离出中间节点,作为新子树的根节点,然后递归构造前半部分和后半部分。 class Solution { public: TreeNode *sortedListToBST(L...
分类:其他好文   时间:2014-05-08 11:07:14    阅读次数:266
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-05-08 07:29:02    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!