Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
分类:
其他好文 时间:
2014-07-02 00:24:04
阅读次数:
284
2014年6月30日 11:52:17遇到一个问题,安装了redis.so后无论怎么重启nginx 还是 php-fpm都无法加载redis最后发现重启php-fpm的参数弄错了要这样:./php-fpm -c /usr/local/web/php/etc/php.ini -y /usr/local...
分类:
Web程序 时间:
2014-07-02 00:02:34
阅读次数:
197
英文版原文地址这是两篇连载文章的第一篇,讲解了如何使用Docker替代Vagrant开发基于Express框架的NodeJs App的部分细节。不过,这次要增加点难度:我们要使用connect-redis在 Redis 中实现 session 功能。第二篇文章将基于此继续。The Node App这...
分类:
移动开发 时间:
2014-07-01 22:32:50
阅读次数:
414
Redis与Memcached的比较.1.Memcached是多线程,而Redis使用单线程.2.Memcached使用预分配的内存池的方式,Redis使用现场申请内存的方式来存储数据,并且可以配置虚拟内存。3.Redis可以实现持久化,主从复制,实现故障恢复。4.Memcached只是简单的key...
分类:
其他好文 时间:
2014-07-01 20:34:13
阅读次数:
248
一、概念简介:Redis: Redis是一款开源的Key-Value数据库,运行在内存中,由ANSI C编写,详细的信息在Redis官网上面有,因为我自己通过google等各种渠道去学习Redis,走了不少弯路,所以总结一条我认为不错的学习路径给大家: 1.《The Little Redis B.....
分类:
编程语言 时间:
2014-07-01 20:05:44
阅读次数:
618
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 order.
You may assume no duplicates in the array....
分类:
其他好文 时间:
2014-07-01 15:22:44
阅读次数:
140
Sorted Array:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is gre...
分类:
其他好文 时间:
2014-07-01 12:51:53
阅读次数:
202
1 什么是redis
redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)和zset(有序集合)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,redis支持各种不同方式的排序。与memcached一...
分类:
其他好文 时间:
2014-06-30 20:25:48
阅读次数:
205
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with...
分类:
其他好文 时间:
2014-06-30 17:22:13
阅读次数:
196
无限大小 C语言如何表示无限大小,NAN?redis里面这么搞的:staticdoubleR_Zero,R_PosInf,R_NegInf,R_Nan;/*Doubleconstantsinitialization*/R_Zero=0.0;R_PosInf=1.0/R_Zero;R_NegInf=....
分类:
其他好文 时间:
2014-06-30 15:34:22
阅读次数:
169