//check the adConsumed table to find whether the same status, status '1' is in the table, //if the status exsits in the table do not i...
分类:
数据库 时间:
2015-07-27 10:48:45
阅读次数:
149
题意:有一个有序序列A,其内部可能有部分被旋转了,比如A[1...n]被转成A[mid...n]+A[1...mid-1],如果被旋转,只有这种形式。问最小元素是?(假设没有重复元素)思路:如果是序没乱,直接返回A[1],如果乱了,二分查找还是可以的,O(1)可能就不行了。 二分要点:mid有可能....
分类:
其他好文 时间:
2015-07-27 10:47:12
阅读次数:
114
头文件#include 函数实现templateInputIterator find (InputIterator first, InputIterator last, const T& val){ while (first!=last) { if (*first==val) retu...
分类:
编程语言 时间:
2015-07-27 10:44:51
阅读次数:
289
重装WDK什么的有时候有bug。。。。写下面注册表修复Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}] @="PSFacto...
分类:
其他好文 时间:
2015-07-27 10:44:40
阅读次数:
141
【034-Search for a Range(搜索一个范围)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm’s runtime comple...
分类:
编程语言 时间:
2015-07-27 08:13:21
阅读次数:
328
其实问题的解决办法很简单:就是Qt不支持中文的路径,把源码的路径全部改成英文即可解决问题。
首先问题发生在我运行网上的例子程序时,重新构建编译也是出错,提示:
Cannot find file: F:\Pro\Qt\QT5开发及实例\本书源程序\CH1\CH101\Dialog\Dialog.pro.
21:55:03: 进程"D:\Qt\Qt5.5.0\5.5\msvc2013_6...
分类:
其他好文 时间:
2015-07-26 22:40:21
阅读次数:
445
题目:
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ 2 3
Ret...
分类:
编程语言 时间:
2015-07-26 22:39:28
阅读次数:
189
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2015-07-26 20:36:39
阅读次数:
82
Given an array of integers, every element appearsthreetimes except for one. Find that single one.public class Solution { public int singleNumber(in...
分类:
其他好文 时间:
2015-07-26 20:30:48
阅读次数:
146
Could not find a storyboard named 'MainStoryboard'查看Supporting Files--->Info.plist-->main storyboard file base name为什么把UIStoryboard *mainStoryboard = ...
分类:
其他好文 时间:
2015-07-26 20:29:48
阅读次数:
139