摘要:
https://leetcode.com/problems/reverse-nodes-in-k-group/ https://leetcode.com/mockinterview/session/result/xjlzcwc/ 链表分批倒置,还是有点绕的。用了三个临时变量来处理。需要细心,也需要掌 阅读全文
posted @ 2016-11-05 19:01
blcblc
阅读(331)
评论(0)
推荐(0)
摘要:
https://leetcode.com/problems/simplify-path/ https://leetcode.com/mockinterview/session/result/xjl3d3m/ 现在字符串比较,都知道用 equals了,哈哈。不能用==,否则可能有bug。 阅读全文
posted @ 2016-11-05 18:31
blcblc
阅读(169)
评论(0)
推荐(0)
摘要:
看了这篇文章 http://blog.nosqlfan.com/html/4153.html 本文所述内容基于 Redis2.6 及以上版本。 注:在客户端通过 info 命令可以查看服务器版本信息,以及很多其他信息。 > info# Serverredis_version:3.2.3 主要介绍了 阅读全文
posted @ 2016-11-05 18:00
blcblc
阅读(6651)
评论(1)
推荐(0)
摘要:
之前另一篇文章也介绍了 Redis Cluster (link,在文章的后半部分) 今天看到这一篇,简单说一下(http://hot66hot.iteye.com/blog/2050676) 作者的目标:Redis Cluster will support up to ~1000 nodes. 赞. 阅读全文
posted @ 2016-11-05 17:31
blcblc
阅读(4727)
评论(1)
推荐(0)
摘要:
参考这篇文章: http://www.yeeach.com/post/591 在Memcached、Key-Value Store、Bittorrent DHT、LVS中都采用了Consistent Hashing算法,可以说Consistent Hashing 是分布式系统负载均衡的首选算法。 由 阅读全文
posted @ 2016-11-05 16:02
blcblc
阅读(1064)
评论(0)
推荐(0)
摘要:
主要看的这篇文章 http://mt.sohu.com/20160523/n451048025.shtml edis Partitioning即Redis分区,简单的说就是将数据分布到不同的redis实例中,因此对于每个redis实例所存储的内容仅仅是所有内容的一个子集。 分区(Partitioni 阅读全文
posted @ 2016-11-05 12:24
blcblc
阅读(2203)
评论(0)
推荐(0)
摘要:
在写另一篇文章( link )的时候,涉及到过滤器(filter)功能。以前没有接触过,整理如下。 主要参考这两篇: http://blog.csdn.net/u011510825/article/details/51859656 http://redis.io/commands/scan 实验如下 阅读全文
posted @ 2016-11-05 11:05
blcblc
阅读(12885)
评论(0)
推荐(0)
摘要:
看了一些文章,关于Redis的使用场景,觉得挺好的。Redis肯定远远不止作为缓存而使用。Redis更像是一个实现很好的数据结构服务器,通过TCP栈协议提供服务。下面进行详细描述。 http://database.51cto.com/art/201107/276333.htm (其实是对 http: 阅读全文
posted @ 2016-11-05 10:53
blcblc
阅读(516)
评论(0)
推荐(0)
摘要:
https://leetcode.com/problems/search-insert-position/ https://leetcode.com/mockinterview/session/result/xjw45dt/ 这是一个典型的二分查找。注意一些坑。比如里面start end的设置,到了 阅读全文
posted @ 2016-11-05 09:13
blcblc
阅读(124)
评论(0)
推荐(0)