码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
LeetCode "Merge Sorted Array"
My first reaction: move all A elements back by n positions, and start everything from A[0] and B[0]. But a smarter idea is to start everything from th...
分类:其他好文   时间:2014-07-22 00:35:36    阅读次数:189
Servlets & JSP
首先,吐槽一下自己,老记错servlets的单词拼写~~~在读head first Servlets &JSP,深刻感受到head first 的魅力(多图,一页少字,这就是head first)..1.Web服务器为你做了些什么? web浏览器----(用户的请求包含用户所找资源的名字和地址U.....
分类:Web程序   时间:2014-07-22 00:31:35    阅读次数:240
【leetcode刷题笔记】Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-07-22 00:12:36    阅读次数:156
【leetcode刷题笔记】Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-07-22 00:09:37    阅读次数:151
区间DP基础篇之 POJ2955——Brackets
怒拿一血,first blood,第一个区间DP,第一次就这样子莫名其妙不知不觉滴没了~~~ 题目虽然是鸟语,但还是很赤裸裸的告诉我们要求最大的括号匹配数,DP走起~ dp[i][j]表示区间[i,j]的最大匹配数,那么最重要的状态转移方程就是: dp[i][j]=max(dp[i][k]+dp[k+1][j]) 对啦,要先初始化边界啊,两步走~: memset(dp,0,siz...
分类:其他好文   时间:2014-07-21 23:27:29    阅读次数:214
UVA fill
题目如下: Problem D Fill   There are three jugs with a volume of a, b and c liters. (a,b, and c are positive integers not greater than 200). The first and the secondjug are initially empty, wh...
分类:其他好文   时间:2014-07-21 11:32:15    阅读次数:253
从键盘上输入两个数,按小大的顺序输出
#include #include int main() {    int num1,num2;    int *num1_p=&num1,*num2_p=&num2,*pointer;    printf("Input the first number:");    scanf("%d",num1_p);    printf("Input the second num...
分类:其他好文   时间:2014-07-21 11:14:14    阅读次数:180
UVa10815.Andy's First Dictionary
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=17561391360710815Andy's First DictionaryAcceptedC+...
分类:其他好文   时间:2014-07-21 08:26:16    阅读次数:243
替换Fragment 报错 The specified child already has a parent. You must call removeView() on the child's parent first.
在将一个fragment替换到一个frameLayout的时候报错:code: transaction.replace(R.id.fragment_container, fragment2);错误: java.lang.IllegalStateException: The specified chi...
分类:其他好文   时间:2014-07-21 08:03:10    阅读次数:217
STL 源码剖析 算法 stl_algo.h -- pre_permutation
pre_permutation ---------------------------------------------------------------- 描述: 取得 [first, last) 所标示之序列的前一个排列组合。如果没有,返回 false,有,返回true 思路: 从后往前 1.找两个相邻元素,令左端的元素为*i,右端的元素为*ii,且满足 *i > *ii 2.找出第一个小于 *i 的元素,令其为 *j,将*i,*j元素对调 3.将ii右端的所有元素颠倒 template <cl...
分类:其他好文   时间:2014-07-20 23:07:55    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!