普林斯顿大学算法课 Princeton University Algorithms, Part I 学习资源
分类:
其他好文 时间:
2014-09-30 00:56:11
阅读次数:
285
http://acm.hdu.edu.cn/showproblem.php?pid=5038
就是求个众数 这个范围小 所以一个数组存是否存在的状态就行了
但是这句话真恶心 If not all the value are the same but the frequencies of them are the same, there is no mode.
其实应该是这个意思:...
分类:
其他好文 时间:
2014-09-29 22:31:41
阅读次数:
275
# -*- coding: cp936 -*-
# 1 打开文件
# open(fileName, mode)
# 参数:fileName文件名
# mode打开方式
# w 以写方式打开,
# a 以追加模式打开 (从 EOF 开始, 必要时创建新文件)
# r+ 以读写模式打开
# w+ 以读写模式打开
# a+ 以读写模式打开
# ...
分类:
编程语言 时间:
2014-09-29 14:35:51
阅读次数:
174
问题现象:
我在执行开启归档命令后报错误ORA-00265
SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
...
分类:
其他好文 时间:
2014-09-29 14:25:10
阅读次数:
214
Part I:提问===========================1.什么是DRY?2.解释下面的模型验证规则。public class Movie { public int ID { get; set; } [Required] public string Title { ...
分类:
其他好文 时间:
2014-09-29 00:56:36
阅读次数:
179
DescriptionCraig is fond of planes. Making photographs of planes forms a major part of his daily life. Since he tries to stimulate his social life, an...
分类:
其他好文 时间:
2014-09-28 22:46:45
阅读次数:
193
When a process running in user mode requests additional memory, pages are allocated from the list of free page frames maintained by the kernel. This l...
分类:
系统相关 时间:
2014-09-28 22:27:25
阅读次数:
419
mysql主键设置成auto_increment时,进行并发性能测试出现主键重复Duplicate entry 'xxx' for key 'PRIMARY'
解决方法:
在my.cnf的[mysqld]片段中添加设置innodb_autoinc_lock_mode=0
同时注意调大jdbc的活跃链接数,如设置 jdbc.maxActive=300,因为设置innodb_autoinc_lo...
分类:
数据库 时间:
2014-09-28 19:51:05
阅读次数:
209
tableA = {}tableB = {}setmetatable(tableA,tableB)tableB.__mode = "k" -- tableB.__mode = "v" 或者tableB.__mode = "kv"这样,tableA将是一个weak table当tableA中的键的引用...
分类:
其他好文 时间:
2014-09-28 19:37:55
阅读次数:
169
SIGSEGV (0xb) at pc=0x00007fbcae8f2c91, pid=5707, tid=140449979574016 JRE version: 7.0_25-b30 Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode l...
分类:
系统相关 时间:
2014-09-28 17:59:53
阅读次数:
241