上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 暴力穷举 class NumMatrix { private int[][] matrix; public NumMatrix(int[][] matrix) { this.matrix = matrix; } public int sumRegion(int row1, int col1, int 阅读全文
posted @ 2019-08-11 22:42 lasclocker 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 思路 dp问题,空间换时间,递推公式(初始化+转移方程), 解法 暴力穷举,回溯 参考: https://leetcode.com/articles/coin change/ 阅读全文
posted @ 2019-08-11 17:41 lasclocker 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 我们的系统环境 CentOS 6.5, JDK 1.8 更新yum源 $ yum update 安装 Python 2.7 $ yum install python27 python27 numpy python27 python devel python27 python wheel 升级 gcc 阅读全文
posted @ 2018-09-03 15:07 lasclocker 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 脚本: 阅读全文
posted @ 2016-10-28 14:27 lasclocker 阅读(2623) 评论(0) 推荐(0) 编辑
摘要: 例如:往文件file.txt中,添加一列字符串"20161020", 用制表符分割 阅读全文
posted @ 2016-10-20 17:06 lasclocker 阅读(10861) 评论(0) 推荐(0) 编辑
摘要: 读取文件的第2列和第4列: 求文件file1.txt的第二列 和 file2.txt(单列文件)的交集: 阅读全文
posted @ 2016-10-20 14:53 lasclocker 阅读(8707) 评论(0) 推荐(0) 编辑
摘要: 按照文件大小升序输出结果: 如果要逆序输出,则: 阅读全文
posted @ 2016-10-19 11:38 lasclocker 阅读(1871) 评论(0) 推荐(0) 编辑
摘要: 下面 hello 是开始时间, world 是结束时间 阅读全文
posted @ 2016-09-26 15:24 lasclocker 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 在一个*context.xml 配置文件 A 中, 有个定义的bean B, 把 A 添加到 application-context.xml 中,发现B不能正常初始化。 解决办法: 添加 阅读全文
posted @ 2016-08-17 19:35 lasclocker 阅读(1995) 评论(0) 推荐(0) 编辑
摘要: 一般该类错误: 找不到方法或找不到类, 都是maven pom 仓库依赖的问题,有时是 因为缺少该依赖类,可以考虑添加相关依赖; 有时因为依赖冲突, 可以到 maven 的仓库下面把 有关该类的包 全部删掉, 让其重新下载。 阅读全文
posted @ 2016-08-17 10:51 lasclocker 阅读(255) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页