LRU Cache
Total Accepted: 76226 Total
Submissions: 481333 Difficulty: Hard
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the fo...
分类:
系统相关 时间:
2016-06-24 15:19:00
阅读次数:
201
reference to : http://blog.csdn.net/mldxs/article/details/18699965 重启到Recovery界面 adb reboot recovery 重启到bootloader界面 adb reboot bootloader adb wait-fo ...
分类:
移动开发 时间:
2016-06-22 14:08:37
阅读次数:
224
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-06-20 15:27:47
阅读次数:
129
语言 语言是指程序的命令,都是按照顺序执行的。语言在程序中执行的顺序称之为“控制流”或“执行流”。 语句是可以镶嵌的,可以是以分号结尾的但行代码,也可以是语块中的但行语句。语句块括在括号{}内,并且可以包含镶嵌块。 语句分类: 选择语句:if else switch case 循环语句: do fo ...
分类:
编程语言 时间:
2016-06-20 08:56:55
阅读次数:
218
Django的form表单一般具有两种功能 1. 验证输入 2.输入HTML 模板 from django import forms class BookForm(forms.Form): name = forms.CharField(max_length=10) publish_date = fo ...
分类:
其他好文 时间:
2016-06-19 14:14:58
阅读次数:
306
链接:http://blog.sina.com.cn/s/blog_5567a9fa0100azv3.html 作者:钻石之黎明 时间:2008-10-04 19:22:40 链接:http://blog.sina.com.cn/s/blog_5d9edaba0100bl3s.html 转载者:fo ...
分类:
其他好文 时间:
2016-06-17 14:06:14
阅读次数:
239
做1010 本来是想的DFS深搜 但是自己凭空打 打不出来 因为没有记模板 然后就去搜 但是看了一遍 自己打却又是有BUG 然后验证 就出现了一个二维字符数组打印的问题 开始代码是这样 #include<stdio.h> void main() { char a[3][4]; int i,j; fo ...
分类:
其他好文 时间:
2016-06-15 14:08:13
阅读次数:
133
一、案例 我们举个案例,比如recovery升级中,碰到这个的log [html] view plain copy 01-01 08:03:22.410000 217 217 W applypatch: type=1400 audit(0.0:16): avc: denied { read } fo ...
分类:
移动开发 时间:
2016-06-13 14:56:20
阅读次数:
1465
<Html>
<Body>
<FONT
style="FONT-SIZE:120pt;COLOR:green;FONT-FAMILY:Webdings">û
</FONT>
<Ahref=“http://homepage.yesky.com/65/2430065.shtml”></A>
</Body>
</Html>更多世界<p><FONTstyle="FO..
分类:
其他好文 时间:
2016-06-10 15:03:51
阅读次数:
312
1.读取键盘输入 msg = raw_input("Please enter :") print "you input ",msg #可接受Python表达式作为输入 msg2 = input("请输入:") print "你输入了",msg2 2.读文件 fo = open("foo.txt","... ...
分类:
编程语言 时间:
2016-06-09 15:52:54
阅读次数:
134