码迷,mamicode.com
首页 >  
搜索关键字:complete    ( 2283个结果
Best Time To Sell Stock 3
# 题目 > Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You...
分类:其他好文   时间:2014-12-04 12:23:54    阅读次数:161
Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-12-03 21:13:00    阅读次数:187
Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-12-03 21:00:33    阅读次数:141
shell如何更改当前工作路径
转载:http://imysqldba.blog.51cto.com/1222376/616805shell 脚本执行有三种方法bash 脚本名 sh 脚本名 chmod +x 脚本名 使用下面语句测试#a.sh(扩展名可不要)cd /pwdecho "complete"然而具体执行时候,发现过程中...
分类:系统相关   时间:2014-12-02 22:01:35    阅读次数:156
uva-122 树的层次遍历
题意概要:输入二叉树的每一个节点的信息,建树完毕后,按照层次顺序遍历这棵树,然后将每一个节点的权值给输出来! 注意:如果从根到某个叶节点的路径上有的节点没有在输入中给出或者给出超过一次, 应该输出“not complete”.节点数不超过256个! 代码如下:(代码中有详细的注释!)此份代码用时为 9ms ! #include #include #include #inc...
分类:其他好文   时间:2014-12-01 22:36:09    阅读次数:305
看到的一些优秀书籍
专业典藏《C++ Primer》《Code Complete》《编程的修炼》《支持处理器的技术》《编码》《研究之美》移动开发《Objective-C程序设计》《Cocoa Programming》《触动人心》《疯狂Android讲义》《深入剖析Android系统》《Android系统源代码情景分析》...
分类:其他好文   时间:2014-12-01 15:58:28    阅读次数:151
Best Time to Buy and Sell Stock
问题一 Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy on...
分类:其他好文   时间:2014-11-30 23:19:36    阅读次数:232
Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-11-29 13:05:29    阅读次数:161
数据结构 之 二叉堆(Heap)
注:本节主要讨论最大堆(最小堆同理)。一、堆的概念 堆,又称二叉堆。同二叉查找树一样,堆也有两个性质,即结构性和堆序性。 1、结构性质: 堆是一棵被完全填满的二叉树,有可能的例外是在底层,底层上的元素从左到右填入。这样的树称为完全二叉树(complete binary tree)。下图就是这样一个例...
分类:其他好文   时间:2014-11-28 15:49:09    阅读次数:238
转:Bullet物理引擎不完全指南(Bullet Physics Engine not complete Guide)
write by 九天雁翎(JTianLing) -- blog.csdn.net/vagrxie讨论新闻组及文件前言 Bullet据称为游戏世界占有率为第三的物理引擎,也是前几大引擎目前唯一能够找到的支持iPhone,开源,免费(Zlib协议,非常自由,且商业免费)的物理引擎,但是文档资料并不是很...
分类:其他好文   时间:2014-11-28 14:18:30    阅读次数:354
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!