码迷,mamicode.com
首页 >  
搜索关键字:least    ( 1796个结果
LRU缓存实现(Java)
LRU Cache的LinkedHashMap实现LRU Cache的链表+HashMap实现LinkedHashMap的FIFO实现调用示例LRU是Least Recently Used 的缩写,翻译过来就是“最近最少使用”,LRU缓存就是使用这种原理实现,简单的说就是缓存一定量的数据,当超过设定...
分类:编程语言   时间:2014-05-23 22:03:56    阅读次数:527
Candy
There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Each child must have at least one candy. Children with a higher rating get more candies than...
分类:其他好文   时间:2014-05-22 11:00:49    阅读次数:285
【LeetCode】LRU Cache
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 value (will always be positive) of the key if t...
分类:其他好文   时间:2014-05-22 07:25:32    阅读次数:254
LeetCode OJ - LRU Cache
题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset. get(key)- Get ...
分类:其他好文   时间:2014-05-16 05:42:29    阅读次数:280
Perforce 使用笔记
Perforce requires at least two executables: the server (p4d), and at least one Perforce client program (such as p4 on UNIX, or p4.exe on Windows).If y...
分类:其他好文   时间:2014-05-15 07:51:28    阅读次数:276
最小二乘拟合
拟合函数```matlabfunction C = lspoly(X,Y,M)%This funciton implements the Least Squares Polynomial%By abcat at 2014.5.7%Input -X is the 1*n abscissa vecto....
分类:其他好文   时间:2014-05-09 10:41:12    阅读次数:271
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,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
LeetCode——LRU Cache
LRU Cache   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 value (will always be posi...
分类:其他好文   时间:2014-05-07 07:16:21    阅读次数:316
基数排序
时间复杂度 O(d*n),d 为不同数字数目,n 为待排元素个数。分为: MSD(most significant digit) 和 LSD(least significant digit)两种方法。MSD:从最高级别的 key 开始排序,每趟排序将所有元素分成 d 堆。LSD: 从最低级别的 k...
分类:其他好文   时间:2014-05-03 22:41:16    阅读次数:418
UVA之11462 - Age Sort
【题目】 B Age Sort Input: Standard Input Output: Standard Output   You are given the ages (in years) of all people of a country with at least 1 year of age. You kn...
分类:其他好文   时间:2014-05-03 16:51:42    阅读次数:427
1796条   上一页 1 ... 177 178 179 180 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!