其他
DP.类似最大和。就是要记录正的和负的两种情况。class Solution {public: int maxProduct(int A[], int n) { vector positive(n); vector minus(n); int resu...
分类:其他 时间:2015-01-01 00:04:39 收藏:0 阅读:314
转载:http://www.ibm.com/developerworks/cn/linux/l-btloader/1. 引言在专用的嵌入式板子运行 GNU/Linux 系统已经变得越来越流行。一个嵌入式 Linux 系统从软件的角度看通常可以分为四个层次:1. 引导加载程序。包括固化在固件(firm...
分类:其他 时间:2015-01-01 00:04:29 收藏:0 阅读:308
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next...
分类:其他 时间:2015-01-01 00:04:09 收藏:0 阅读:335
每次只能有一组数字进行交换,最后达到逆序效果我们可以这样理解,我们总是希望每次将一个数摆到正确的位置上,那么这样一个数有顺时针逆时针两个方向移动的机会,我们总是挑移动次数少的一个方向那么我们排列前前一半数字,就将其逆时针排,这样次数比较少而后一半就顺时针排自己就能得到两个等差数列了 1 #inclu...
分类:其他 时间:2015-01-01 00:03:49 收藏:0 阅读:310
关于c++能做什么的解惑https://www.ptt.cc/bbs/Soft_Job/M.1352253161.A.D09.htmlhttp://subject.csdn.net/cplusplus/http://www.zhihu.com/question/20181597http://bill...
分类:其他 时间:2015-01-01 00:03:29 收藏:0 阅读:408
Given a string which contains only letters. Sort it by lower case first and upper case second.NoteIt's not necessary to keep the original order of low...
分类:其他 时间:2015-01-01 00:03:09 收藏:0 阅读:1303
题目:(Tree Stack)Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will ...
分类:其他 时间:2015-01-01 00:02:39 收藏:0 阅读:309
1 1、加载应用信息: 2 1.1、直接在controller里进行懒加载:(get方法) 3 1.1.1、先判断是否已经加载数据:if (array == nil) 4 1.1.2、先找到plist文件的路径:NSString *path = [[NSBundle mai...
分类:其他 时间:2015-01-01 00:01:49 收藏:0 阅读:346
老题目。两个栈。class MinStack { stack stk; stack minstk;public: void push(int x) { stk.push(x); if (minstk.empty() || minstk.top() >= ...
分类:其他 时间:2015-01-01 00:01:39 收藏:0 阅读:352
各种情况。有恶心的负数最值,用long long来做了。除此之外的情况下面都列出来了。/*1, 8 = 0.1251, 6 = 0.1(6)-50, 6 = -6.250, -3 = 0-1, -2147483648 = "0.0000000004656612873077392578125"*/ty...
分类:其他 时间:2015-01-01 00:01:29 收藏:0 阅读:372
1142364142365142366166744
上一页1667435下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!