摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the ... 阅读全文
posted @ 2014-04-15 15:55 linyx 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 奋是基础,一切的前提奋之上是忍耐大部分时候大部分人的“习惯”都是跟“效率”作对的奋让你有机会去跟这些习惯做斗争在 ACM 竞赛的级别,写代码不是在解题,而是实现早已在脑子里准备好的一个逻辑流程。这个追求跟大部分没有训练过的人的习惯相反,要扭转这种习惯,第一步可以做尝试有:1. 把准备和敲键盘分割为两... 阅读全文
posted @ 2014-04-15 01:02 linyx 阅读(229) 评论(0) 推荐(0) 编辑