摘要: No.146 LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(ke... 阅读全文
posted @ 2015-05-22 16:23 人生不酱油 阅读(206) 评论(0) 推荐(0)
摘要: No.35 Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would ... 阅读全文
posted @ 2015-05-22 10:42 人生不酱油 阅读(138) 评论(0) 推荐(0)