2015年5月1日

摘要: 题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v... 阅读全文
posted @ 2015-05-01 21:57 承续缘 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e... 阅读全文
posted @ 2015-05-01 09:42 承续缘 阅读(172) 评论(0) 推荐(0) 编辑

导航