码迷,mamicode.com
首页 >  
搜索关键字:recently    ( 891个结果
LRU算法的Python实现
LRU:least recently used,最近最少使用算法。在计算机的二级缓存,以及内存页面的置换,还有Redis缓存系统中都用到了该算法。我在两次面试时,都遇到过这个问题。 LRU的算法是比较简单的,当对key进行访问时(一般有查询,更新,增加,在get()和set()两个方法中实现即...
分类:编程语言   时间:2015-06-05 21:07:54    阅读次数:166
Java for LeetCode 146 LRU Cache 【HARD】
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...
分类:编程语言   时间:2015-06-04 22:26:19    阅读次数:202
CSUOJ 1637 Yet Satisfiability Again!
1637: Yet Satisfiability Again!Time Limit:5 SecMemory Limit:128 MBDescriptionAlice recently started to work for a hardware design company and as a par...
分类:其他好文   时间:2015-06-04 13:46:44    阅读次数:228
swust oj 1026--Egg pain's hzf
题目链接:http://acm.swust.edu.cn/problem/1026/Time limit(ms): 3000 Memory limit(kb): 65535hzf is crazy about reading math recently,and he is thinking a...
分类:其他好文   时间:2015-05-31 23:07:04    阅读次数:149
UVA 662 Fast Food(DP)
The fastfood chain McBurger owns several restaurants along a highway. Recently, they have decided to build several depots along the highway, each one located at a restaurent and supplying several of t...
分类:其他好文   时间:2015-05-23 00:05:57    阅读次数:135
No.146 LRU Cache
No.146 LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(ke...
分类:系统相关   时间:2015-05-22 18:47:57    阅读次数:180
17996 Daily Cool Run (dp)
时间限制:1000MS 内存限制:65535K提交次数:0 通过次数:0 题型: 编程题语言: 不限定DescriptionDaily Cool Run is a popular game, and Xdp enjoys playing the game recently. While playin...
分类:其他好文   时间:2015-05-21 22:03:30    阅读次数:143
tc srm659 div2 1000
题目: Garth likes apples and oranges. Recently he bought N fruits, where each fruit was either an apple or an orange. Then he ate all N fruits in some order. You are given an int K. Garth obse...
分类:其他好文   时间:2015-05-20 14:54:13    阅读次数:182
POJ 1502 MPI Maelstrom (最短路)
MPI MaelstromTime Limit:1000MSMemory Limit:10000KTotal Submissions:6044Accepted:3761DescriptionBIT has recently taken delivery of their new supercompu...
分类:其他好文   时间:2015-05-19 18:28:56    阅读次数:134
May Challenge 2015(CodeChef 2015年5月月赛)
Chef and new recipe Rupsa recently started to intern under Chef. He gave her N type of ingredients of varying quantity A1, A2, ..., AN respectively to store it. But as she is lazy to arrange th...
分类:其他好文   时间:2015-05-19 16:46:41    阅读次数:172
891条   上一页 1 ... 60 61 62 63 64 ... 90 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!