码迷,mamicode.com
首页 >  
搜索关键字:back tracking    ( 16119个结果
用到的C++标准库
std::set, 模板写的平衡二叉树的集合容器, method: insert, count,std:map,映射和多重映射基于某一类型Key的键集的存在,提供对T类型的数据进行快速和高效的检索std::vector,存放任意类型的动态数组的容器, .push_back(elen)尾部加入一个.....
分类:编程语言   时间:2014-06-18 20:24:10    阅读次数:317
安卓Activity生命周期(转)
http://www.oschina.net/question/54100_27841启动:onCreate()->onStart()->onResume当从Activity界面直接按Back键,onPause()->onStop()->onDestory()当从Activity界面按home键。o...
分类:移动开发   时间:2014-06-16 23:31:02    阅读次数:275
sgu-319-Kalevich Strikes Back-线段树
线段树记录当前区间是哪一个长方形在覆盖。 然后根据每一条线更新线段树。 如果是左边的边,那么把区间更新成当前长方形。 否则,把区间更新成当前长方形的前驱。 #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,102...
分类:其他好文   时间:2014-06-16 11:26:00    阅读次数:161
deque
#include #include using namespace std;int main(int argc, char *argv[]){ deque A, B; deque ::iterator it; A.push_front(1); B.push_back(1); ...
分类:其他好文   时间:2014-06-16 07:17:15    阅读次数:199
LeetCode GrayCode
class Solution {public: vector grayCode(int n) { vector res; res.push_back(0); long pow2 = 1; for (int i=1; i <= n; i++...
分类:其他好文   时间:2014-06-16 07:11:52    阅读次数:213
随意输入N个英文字符,找出其中最长连续的排列。
intout_max_length_crease_str(constchar*p,std::vector&vct){ vct.clear(); intnlen=strlen(p); if(nlen==0){ return0; } if(nlen==1){ vct.push_back(p); r...
分类:其他好文   时间:2014-06-15 21:01:04    阅读次数:178
These Strikes Much Better Than A Clinging Bag
The following tips are designed to help you use the microwave bags, and usually on the back of each bag. Most of sterilization bags in the market, the...
分类:其他好文   时间:2014-06-15 20:50:27    阅读次数:271
leetcode Combination Sum
void dfs(int k,int target,vector& candidates,vector& sol,vector >& res){ if(target==0){ vector temp(sol); res.push_back(temp); return; }else if(tar...
分类:其他好文   时间:2014-06-14 10:31:07    阅读次数:196
Tasks and Back Stack
Android Tasks and Back Stack...
分类:其他好文   时间:2014-06-14 06:45:51    阅读次数:317
C++学习笔记:List容器
http://www.cplusplus.com/reference/list/list/#include list l:初始化一个0大小的表list l(10):初始化一个10个大小的表empty:是否为空size:大小max_size:可分配的最大值front:第一个元素back:最后一个元素p...
分类:编程语言   时间:2014-06-12 10:42:33    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!