摘要: 我现在在做一个叫《leetbook》的免费开源书项目,力求提供最易懂的中文思路,目前把解题思路都同步更新到gitbook上了,需要的同学可以去看看 书的地址:https://hk029.gitbooks.io/leetbook/ ` 2.Add Two Numbers [M] Add Two Num 阅读全文
posted @ 2016-04-01 22:45 voidsky 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 001.Two Sum[E] Two SumE 题目 思路 1双重循环 2 排序 3 Hashmap 1.题目 Given an array of integers, return indices of the two numbers such that they add up to a speci 阅读全文
posted @ 2016-04-01 22:32 voidsky 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 其实这是老调重弹的问题了,在windows下面出现中文乱码大多都是编码格式的问题不一致的问题,最简单的就是uft-8和gbk冲突的问题。如果一个文件本来是以utf-8存的,但是以gbk打开,当然会出现乱码了。 方法一:用utf-8打开文件 linux中中文常用的格式是utf-8,minGW是gcc的 阅读全文
posted @ 2016-04-01 16:31 voidsky 阅读(2615) 评论(0) 推荐(2) 编辑
摘要: 介绍1 特性2 Hashtable和bucket模版1 迭代器功能函数1 构造函数12示例代码2 容量操作21 size22 empty3 元素操作31 find32 insert33 at34 erase35 clear36 swap37 示例代码4 迭代器和bucket操作41... 阅读全文
posted @ 2016-04-01 15:19 voidsky 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: 不要点红的运行,那是调试,点绿色的三角形,那才是运行,不会一闪而过 不要点红的运行,那是调试,点绿色的三角形,那才是运行,不会一闪而过 阅读全文
posted @ 2016-04-01 11:32 voidsky 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: codeblocks编译出错 今天编译一个c++程序调用模板的时候,出现错误 error This file requires compiler and library support for the \ ISO C++ 2011 standard. This support is currentl 阅读全文
posted @ 2016-04-01 11:28 voidsky 阅读(703) 评论(0) 推荐(0) 编辑