Boostable

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年7月28日

摘要: LeetCode: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.... 阅读全文
posted @ 2014-07-28 22:36 Boostable 阅读(371) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Insertion Sort ListSort a linked list using insertion sort.地址:https://oj.leetcode.com/problems/insertion-sort-list/算法:按题目的意思,采用插入排序对链表进行排序,时... 阅读全文
posted @ 2014-07-28 22:19 Boostable 阅读(192) 评论(0) 推荐(0) 编辑

摘要: LeetCode: Sort ListSort a linked list in O(n log n) time using constant space complexity.地址:https://oj.leetcode.com/problems/sort-list/算法:采用分治的思想,首先利用... 阅读全文
posted @ 2014-07-28 22:16 Boostable 阅读(205) 评论(0) 推荐(0) 编辑