自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

转载 AFNetworking 和 SDWebImage

AFNetworking 1. AFNetworking对IOS支持情况AFNetworking VersionMinimum iOS TargetMinimum OS X TargetNotes2.xiOS 6O...

2015-09-16 20:35:00 145

转载 ubuntu下无法启动android虚拟机

http://stackoverflow.com/questions/13463197/the-android-emulator-does-not-start-avdYou ran into the same problem that I did, outlined inthis issue. Find yourlibOpenglRender.soin your SDK...

2014-10-28 21:46:00 231

转载 Sublime Text3安装包管理

使用Ctrl+`快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码:1importurllib.request,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); urllib.request.install_ope...

2014-10-26 21:35:00 154

转载 Ubuntu下的Sun Java的安装与配置

1. 安装下载Sun Java包,然后解压文件 tar -zxvf xxx.tar.gz, 然后 mv jdk文件夹 /usr/local/jdk然后设置环境变量sudo gedit /etc/profile JAVA_HOME=/usr/local/jdk export JRE_HOME=/usr/local/jdk/jre...

2014-10-26 16:43:00 132

转载 求最大面积--------O(n)复杂度

Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is a histogram wher...

2014-09-07 16:53:00 142

转载 求最大面积

Container With Most WaterTotal Accepted:15862Total Submissions:50802My SubmissionsGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,...

2014-09-07 15:22:00 168

转载 gas stations

There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[i]of gas to travel from stationito...

2014-09-06 23:52:00 133

转载 n皇后问题

递归算法bool valid(vector<int> &res, int r) { int nCol = res.size(); for(int i=0;i<nCol;i++){ if(res[i]==r || abs(res[i]-r)==nCol-i){ ...

2014-09-06 22:27:00 95

转载 Triangle --- 至顶向下求最小值

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4],...

2014-09-06 16:27:00 164

转载 First Missing Positive

Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and uses co...

2014-09-05 16:38:00 72

转载 Combination Sum II

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in the combin...

2014-09-05 15:48:00 89

转载 判断一个二叉树是不是自己的镜像

bool helper(TreeNode *pA, TreeNode *pB) { if (!pA && !pB) return true; if (!pA || !pB) return false; // only one has node in a tree and b tree if (pA->val...

2014-09-04 22:06:00 183

转载 求n组括号的排列方式 --- 卡特拉数

Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))", "(()())", "(())()", "()(())", "()(...

2014-09-04 21:27:00 140

转载 给定n求二叉搜索树的个数

Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 unique BST's shown below. 1 3...

2014-09-04 17:45:00 234

转载 给定无序数组,求最大的连续的数的长度

Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is[1, 2, 3,...

2014-09-04 15:15:00 475

转载 The count-and-say sequence 实现

The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"two 1s"or21.21is read off as"one ...

2014-09-04 14:14:00 92

转载 数据库通用访问接口设计与实现(C++)

由于项目的需要,我们需要连接许多类型的数据库。同时我们希望对数据库的操作能够提供一个统一的访问接口。现在网上有不少开源的,但是对于用惯了VC ADO的人来说,这些接口设计的感觉真是有点反人类。比较好用的有一个人SQLAPI++,但是是要收费的,破解版的也没有源代码,那种代码无法掌握在自己手里的感觉,总是感觉不爽。于是便自己开始写一个。 根据初步的设计,有了以下的一个模型: ...

2013-01-26 16:30:00 759

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除