上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 80 下一页
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ... 阅读全文
posted @ 2015-07-07 16:09 匡子语 阅读(186) 评论(0) 推荐(0)
摘要: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2... 阅读全文
posted @ 2015-07-07 15:54 匡子语 阅读(210) 评论(0) 推荐(0)
摘要: 1.求一个字符串中连续出现次数最多的子串。我自己的思路:遍历所有可能的子串的长度,遍历所有可能的起始位置,后面遍历查找有多少连续相同的子串,更新最大次数。我是用C实现的。#include#include#includechar * maxTimeSubStr(const char * str_in)... 阅读全文
posted @ 2015-07-03 14:51 匡子语 阅读(358) 评论(0) 推荐(0)
摘要: 找茬外挂制作 找茬游戏大家肯定都很熟悉吧,两张类似的图片,找里面的不同。在下眼神不大好,经常瞪图片半天也找不到区别。于是乎决定做个辅助工具来解放一下自己的双眼。一、使用工具 Qt:主要是用来做界面的 OpenCV: 用于图像处理 C++: 基本实现语言 Qt中OpenCV的配置在【QT】O... 阅读全文
posted @ 2015-06-30 23:21 匡子语 阅读(2556) 评论(0) 推荐(2)
摘要: 都不是难题,但是我的脑子木木的,条件写的很混乱。1.数字如上,1对应坐标(0,0),向上y变小,向右x变大。给定坐标,输出值。观察发现:第n圈结束时,一共输出了(2n)2个数字。这样,我们判断当前在第几圈,并找到位置对应当前的第几个数字就可以得到结果。int getNum(int x, int y)... 阅读全文
posted @ 2015-06-18 15:18 匡子语 阅读(319) 评论(0) 推荐(0)
摘要: 参考这篇博客:http://www.tuicool.com/articles/mUZNne配置:vs2010项目属性里面配置包含目录和库目录。包含目录:C:\Program Files\MySQL\MySQL Server 5.6\include库目录:C:\Program Files\MySQL\... 阅读全文
posted @ 2015-06-14 20:43 匡子语 阅读(473) 评论(0) 推荐(0)
摘要: Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at leas... 阅读全文
posted @ 2015-06-12 21:45 匡子语 阅读(194) 评论(0) 推荐(0)
摘要: 1-9的9个数字,每个数字只能出现依次,要求这样一个9位的整数:其第一位能被1整除,前两位能被2整除,...前9位能被9整除。我的做法,先用vector保存数字。用全排列生成所有1-9不重复出现可能产生的9位数,然后判断是否符合要求。#include#includeusing namespace s... 阅读全文
posted @ 2015-06-11 20:31 匡子语 阅读(323) 评论(0) 推荐(0)
摘要: 一、数值类型int(5) 表示显示宽度为5,默认为显示宽度11.zerofill 属性:用0填充前面空位auto_increment 属性:只用于整数。一般从1开始,每行增加1.一个表最多只能有一个这样的列。对于要使用auto_increment的列应该定义为not null并定义为primary ... 阅读全文
posted @ 2015-06-09 22:56 匡子语 阅读(372) 评论(0) 推荐(0)
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2015-06-09 21:06 匡子语 阅读(238) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 80 下一页