Chinaunix首页 | 论坛 | 博客
  • 博客访问: 612022
  • 博文数量: 79
  • 博客积分: 848
  • 博客等级: 军士长
  • 技术积分: 1800
  • 用 户 组: 普通用户
  • 注册时间: 2012-06-26 19:30
文章分类

全部博文(79)

文章存档

2015年(4)

2013年(39)

2012年(36)

发布时间:2015-04-14 16:57:00

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8需要注意的是进位.........【阅读全文】

阅读(3107) | 评论(0) | 转发(0)

发布时间:2015-04-09 14:37:53

map的使用......【阅读全文】

阅读(4330) | 评论(0) | 转发(0)

发布时间:2013-10-24 21:39:13

第一部分、十道海量数据处理面试题 1、海量日志数据,提取出某日访问百度次数最多的那个IP。 首先是这一天,并且是访问百度的日志中的IP取出来,逐个写入到一个大文件中。注意到IP是32位的,最多有个2^32个IP。同样可以采用映射的方法,比如模1000,把整个大文件映射为1000个小文件,再找出每个小文中出现频率最.........【阅读全文】

阅读(2089) | 评论(0) | 转发(0)

发布时间:2013-10-20 19:41:29

一致性 hash 算法( consistenthashing ) 张亮 consistent hashing 算法早在 1997 年就在论文 Consistenthashing and random trees 中被提出,目前在 cache 系统中应用越来越广泛; 1 基本场景比如你有 N 个 cache 服务器(后面简称 cache ),那么如何将一个对象 object 映射到 N 个 cache 上呢,.........【阅读全文】

阅读(2657) | 评论(0) | 转发(1)

发布时间:2013-09-28 21:49:36

按照大小顺序找全排列......【阅读全文】

阅读(2872) | 评论(1) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册