Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-06-26 00:29:49
阅读次数:
168
把相机做为人物的子对象,就可以制作:1.第1人称摄像机:把摄像机摆在眼睛前面2.第3人称摄像机:把摄像机摆在人后上面Clear Flags:http://www.haogongju.net/art/1941512
分类:
其他好文 时间:
2014-06-22 23:45:24
阅读次数:
254
6.3 You have a five-quart jug, a three-quart jug, and an unlimited supply of water (but no measuring cups). How would you come up with exactly four qu...
分类:
其他好文 时间:
2014-06-22 23:37:07
阅读次数:
227
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum...
分类:
其他好文 时间:
2014-06-22 20:59:24
阅读次数:
227
在项目中使用git管理,冲突是在所难免的,如果没办法解决冲突,可以试试这个办法!
第一步、对工程进行备份,最好是拷贝到其他文件夹中
第二步、在cmd命令栏上,进入到工程目录下,这里的工程只你正在开发的工程
第三步、输入命令 git stash
git stash clear
git reset --hard id 注:id指你上传文件的id,在eclipse中右键工程-...
分类:
其他好文 时间:
2014-06-22 20:49:56
阅读次数:
150
在项目中使用git管理,冲突是在所难免的,如果没办法解决冲突,可以试试这个办法!
第一步、对工程进行备份,最好是拷贝到其他文件夹中
第二步、在cmd命令栏上,进入到工程目录下,这里的工程只你正在开发的工程
第三步、输入命令 git stash
git stash clear
git reset --hard id 注:id指你上传文件的id,在eclipse中右键工程-...
分类:
其他好文 时间:
2014-06-22 17:44:21
阅读次数:
177
关于这个题想说一下,刚开始准备按照有一个含有n个数的非递减序列,每个数最大值为m,数字可以重复,有多少种这样的序列,像是一个蛮复杂的排列组合
其实这道题,从left bottom到right up只能向右或者向上,也就是m+n个格子里面取m个格子写右,n个格子写上,就成了个很2的排列组合问题
值得强调的是,这个题求组合数是用分数相乘来求的,怕double丢精度可以末尾+0.5然后转化为long...
分类:
其他好文 时间:
2014-06-22 16:53:21
阅读次数:
135
CCache is a compiler cache for C/C++. It speeds up recompilation by caching the result of previous compilations and detecting
when the same compilation is being done again. We can use this tool to s...
分类:
移动开发 时间:
2014-06-21 21:13:40
阅读次数:
318
GETTING STARTED OPENFLOW OPENVSWITCH TUTORIAL LAB : SETUP For a more up to date tutorial as anything more then 6 months old is outdated in the world o...
分类:
其他好文 时间:
2014-06-21 14:52:12
阅读次数:
347