奔跑的小河
Talk is cheap. Show me the code.

导航

 

2015年4月6日

摘要: 前言:对于一致性哈希已经不是罕见概念,在此只是对原有理论概念的一个整理和用自己的理解讲述,希望对新手有些许帮助,利人利己足矣。 1.概念 一致哈希是一种特殊的哈希算法。在使用一致哈希算法后,哈希表槽位数(大小)的改变平均只需要对 K/n 个关键字重新映射,其中 K是关键字的数量,n是槽位数量。然而在 阅读全文
posted @ 2015-04-06 17:37 奔跑的小河 阅读(352) 评论(0) 推荐(0) 编辑
 
摘要: 描述 1.Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. 2.Do not allocate extra... 阅读全文
posted @ 2015-04-06 17:17 奔跑的小河 阅读(120) 评论(0) 推荐(0) 编辑