码迷,mamicode.com
首页 >  
搜索关键字:least    ( 1796个结果
Leetcode: LRU Cache 解题报告
LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get...
分类:系统相关   时间:2014-11-21 18:21:45    阅读次数:238
LEETCODE —— Maximum Subarray [一维DP]
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?...
分类:其他好文   时间:2014-11-21 15:38:34    阅读次数:194
Maximum Subarray
Dynamic ProgrammingFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the arra...
分类:其他好文   时间:2014-11-21 09:06:09    阅读次数:189
Leetcode 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...
分类:系统相关   时间:2014-11-20 13:39:25    阅读次数:289
Maximum Product Subarray
Maximum Product SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given...
分类:其他好文   时间:2014-11-19 21:46:14    阅读次数:152
[leetcode]Maximum Subarray
问题描述: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous subarray [4,?1,...
分类:其他好文   时间:2014-11-19 20:40:18    阅读次数:125
【LeetCode】LRU Cache
LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get...
分类:系统相关   时间:2014-11-19 20:29:44    阅读次数:289
LeetCode - Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2014-11-19 17:48:30    阅读次数:115
LRU算法的设计
一道LeetCode OJ上的题目,要求设计一个LRU(Least Recently Used)算法,题目描述如下:Design and implement a data structure for Least Recently Used (LRU) cache. It should support...
分类:编程语言   时间:2014-11-19 13:51:25    阅读次数:222
LRU
LRU是Least Recently Used算法的简称,在linux的内存页框管理里面用到。[LeetCode][01]上排名第一的就是这个算法。 有一个cache,大小固定,采用链表存储。当有数据时,放到链表头。如果大小溢出,则删除尾节点。...
分类:其他好文   时间:2014-11-19 11:35:37    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!