摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2017-08-30 19:39 Realvie 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文
posted @ 2017-08-30 16:17 Realvie 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 给定一个容量为c的背包,以及一组物品,每个物品的重量及价值分别存放在一个数组中:weights[0...n],values[0...n] 求得将物品放入背包后的最大价值是多少? Code:自底向上 Code:自顶向下 阅读全文
posted @ 2017-07-30 18:45 Realvie 阅读(230) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2017-07-30 11:09 Realvie 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Question: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, giv 阅读全文
posted @ 2017-07-27 21:23 Realvie 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between n 阅读全文
posted @ 2017-07-27 15:25 Realvie 阅读(128) 评论(0) 推荐(0) 编辑
摘要: [问题] spring的声明式事务,我想就不用多介绍了吧,一句话“自从用了Spring AOP啊,事务管理真轻松啊,真轻松;事务管理代码没有了,脑不酸了,手不痛了,一口气全配上了事务;轻量级,测试起来也简单,嘿!”。不管从哪个角度看,轻量级声明式事务都是一件解放生产力的大好事。所以,我们“一直用它” 阅读全文
posted @ 2017-07-24 17:52 Realvie 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 1. 确保系统已经安装jdk1.8,以及Tomcat8。 注:使用Tomcat7会出现很多问题,我遇到的是直接打不开solr的index页面,看网上有网友说还会遇到各种css、js资源404。。还有logging页面,各种Java异常提示,servlet api方法不存在等等。 2. 下载solr- 阅读全文
posted @ 2017-07-04 17:06 Realvie 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、在/usr/local 目录下新建 Java文件夹 将jdk拷贝到 /usr/local/java 进入到java文件夹,解压压缩包 2、设置环境变量 这里采用全局设置方法,就是修改etc/profile,它是是所有用户的共用的环境变量 找到/etc/profile,编辑,在末尾添加 请记住,在 阅读全文
posted @ 2017-07-04 14:57 Realvie 阅读(2175) 评论(0) 推荐(0) 编辑
摘要: 错误信息 需更改配置文件 连接池配置中<property name="testOnBorrow" value="false" /> 即默认配置 阅读全文
posted @ 2017-07-03 20:26 Realvie 阅读(454) 评论(0) 推荐(0) 编辑