上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: 在Windows7 系统上安装了MySQL 8.0,然后创建Maven工程,配置pom.xml文件,添加了如下依赖: \ \org.mybatis\ \mybatis\ \3.4.6\ \ \ \mysql\ \mysql connector java\ \8.0.11\ \ (1)在mybatis 阅读全文
posted @ 2018-07-25 16:54 HorseShoe2016 阅读(11789) 评论(0) 推荐(0) 编辑
摘要: 最新安装的IntelliJ IDEA 2018.1编译器,创建Java Project,并选择之前安装好的Eclipse配置的JDK,如图所示: 在工程中添加 Main.class, main函数中写上简单的代码,然后运行,出现如图所示的错误: 通过网上搜索解决方案,最终总结出原因: 打开 'Fil 阅读全文
posted @ 2018-03-29 16:52 HorseShoe2016 阅读(47970) 评论(7) 推荐(9) 编辑
摘要: 使用 Visual Studio 2015 进行程序开发工作时,如果编译的是来自于Linux平台的源文件,该源文件可能会包含头文件 uninstd.h,这样会产生报错信息: "fatal error C1083: Cannot open include file: 'unistd.h': No su 阅读全文
posted @ 2017-08-01 12:12 HorseShoe2016 阅读(11292) 评论(0) 推荐(0) 编辑
摘要: 同样的程序代码,使用Visual Studio 进行编译,当目标平台分别为x86或x64环境时,其编译结果是不同的。在x86环境下,指针都是4个字节的;而在x64环境下,指针都是8字节的。测试代码如下: include using namespace std; int main(int argc, 阅读全文
posted @ 2017-07-16 11:16 HorseShoe2016 阅读(1546) 评论(0) 推荐(0) 编辑
摘要: 原题链接 "矩形分割" 算法分析: 解决该题要用到“并查集”的思想。 这里有一篇不错的博客介绍并查集: "并查集(Union Find)算法介绍" 记 int total=N M,这里会有 total 个方块,因为一道对角线('\'或者'/')会把一块方块分割为左右两部分,所以,我们把任意一块方块看 阅读全文
posted @ 2017-04-02 18:59 HorseShoe2016 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 原题链接 "一面砖墙" 算法分析 设墙的宽度为 range,则需要统计横坐标为 1,2,3,4,...,range 1 处的墙缝数,取最大的墙缝数(记为maxCrevices),从该处划一道竖线,竖线穿过的砖块数据最少,为N maxCrevices;当然,输数据中不可能所有的坐标处都有裂缝,所以,我 阅读全文
posted @ 2017-04-02 18:04 HorseShoe2016 阅读(314) 评论(0) 推荐(0) 编辑
摘要: hihocoder 1014: Trie树 原题链接: "http://hihocoder.com/problemset/problem/1014" 算法分析 解决该题需要构造一个Trie类,用来对输入的每一个字符串进行统计。 该Trie类每个实例表示一个Trie树的节点,每个节点有26个“槽”,表 阅读全文
posted @ 2017-03-28 21:39 HorseShoe2016 阅读(280) 评论(0) 推荐(0) 编辑
摘要: hihocoder 1485:hiho字符串 描述如果一个字符串恰好包含2个& 39;h& 39;、1个& 39;i& 39;和1个& 39;o& 39;,我们就称这个字符串是hiho字符串。  例如"oihateher"、"hugeinputhugeoutp 阅读全文
posted @ 2017-03-27 12:30 HorseShoe2016 阅读(625) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the values of its boundary in anti clockwise direction starting from root. Boundary includes left boundary, leaves, and ri 阅读全文
posted @ 2017-03-26 12:00 HorseShoe2016 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: During the NBA playoffs, we always arrange the rather strong team to play with the rather weak team, like make the rank 1 team play with the rank nth 阅读全文
posted @ 2017-03-19 11:17 HorseShoe2016 阅读(449) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页