摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu... 阅读全文
posted @ 2014-10-25 22:02 小开风 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: package com.sinaWeibo.interview;import java.util.Comparator;import java.util.Iterator;import java.util.TreeSet;/** * @Author: weblee * @Email: likaiwe... 阅读全文
posted @ 2014-10-25 21:52 小开风 阅读(262) 评论(0) 推荐(0) 编辑
摘要: package com.Amazon.interview;/** * @Author: weblee * @Email: likaiweb@163.com * @Blog: http://www.cnblogs.com/lkzf/ * @Time: 2014年10月25日下午5:14:33 * *... 阅读全文
posted @ 2014-10-25 21:51 小开风 阅读(180) 评论(0) 推荐(0) 编辑
摘要: package com.alibaba.interview;import java.util.Random;/** * @Author: weblee * @Email: likaiweb@163.com * @Blog: http://www.cnblogs.com/lkzf/ * @Time: ... 阅读全文
posted @ 2014-10-25 16:36 小开风 阅读(529) 评论(0) 推荐(0) 编辑