上一页 1 ··· 202 203 204 205 206 207 208 209 210 ··· 233 下一页
摘要: http://harry.me/blog/2014/12/27/neat-algorithms-paxos/ 这篇文章里面有用JS写的Paxos过程,有助理解。但是没怎么仔细看,没时间。 这篇文章用两军问题来讨论Paxos,也很有意思: http://iunknown.iteye.com/blog/ 阅读全文
posted @ 2016-11-07 10:59 blcblc 阅读(5374) 评论(0) 推荐(0)
摘要: Paxos,一言以蔽之,我们需要一种提交协议来确保分布式系统中的全局操作即使是在发生故障的情况下也能保证正确性。 跟拜占庭将军问题是不同的问题,虽然拜占庭也是Lamport提出的。拜占庭里面有叛徒,有坏人,而Paxos里面都是好人,都是期望达成一致的,只是有时候有故障或者有同步问题。要说有联系,那就 阅读全文
posted @ 2016-11-07 00:16 blcblc 阅读(1312) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/h-index/ https://leetcode.com/mockinterview/session/result/xjcpjlh/ 看了hint,不然的话,可能用的是排序的方法,O(NlgN),现在的方法用了extra space,但是 阅读全文
posted @ 2016-11-06 23:46 blcblc 阅读(245) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/create-maximum-number/ 这道题目太难了,花了我很多时间。最后还是参考了别人的方法。还少加了个greater方法。很难。 阅读全文
posted @ 2016-11-06 23:32 blcblc 阅读(297) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 202 203 204 205 206 207 208 209 210 ··· 233 下一页