2015年4月16日

146. LRU Cache

摘要: 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 @ 2015-04-16 05:22 shini 阅读(153) 评论(0) 推荐(0) 编辑

148. Sort List

摘要: Sort a linked list inO(nlogn) time using constant space complexity.Merge Sort./** * Definition for singly-linked list. * class ListNode { * int ... 阅读全文

posted @ 2015-04-16 04:33 shini 阅读(81) 评论(0) 推荐(0) 编辑

导航