
算法
iteye_18281
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一致性HASH算法
https://weblogs.java.net/blog/2007/11/27/consistent-hashing [code="java"] import java.util.Collection; import java.util.SortedMap; import java.util.TreeMap; public class ConsistentHash { ...原创 2015-08-06 13:11:22 · 87 阅读 · 0 评论 -
C++
std::string convert to const char * [code="java"] inline char * getCharPtr(string &str){ char *cha = new char[str->size() + 1]; memcpy(cha,str->c_str(),str->size() + 1); const char *p = cha...原创 2016-08-10 10:55:03 · 146 阅读 · 0 评论