码迷,mamicode.com
首页 >  
搜索关键字:max sum plus plus    ( 46271个结果
第一章 初始C++
第一章 初始C++1. c++简介C plus plus1969年 BCPL(basic combined programming language)1973年 肯·汤普森(Ken Thompson)、丹尼斯·利奇(Dennis Ritchie)1983年 比雅尼·斯特劳斯特鲁普Bjarne Str...
分类:编程语言   时间:2014-05-12 21:41:51    阅读次数:320
sqlplus中常用设置参数
一、各种设置参数解释转自http://baike.baidu.com/view/1239908.htmSql*plus是一个最常用的工具,具有很强的功能,主要有: 1. 数据库的维护,如启动,关闭等,这一般在服务器上操作。 2. 执行sql语句执行pl/sql。 3. 执行sql脚本。 4....
分类:数据库   时间:2014-05-12 05:41:48    阅读次数:539
[leetcode]Sum Root to Leaf Numbers @ Python
原题地址:http://oj.leetcode.com/problems/sum-root-to-leaf-numbers/题意:Given a binary tree containing digits from0-9only, each root-to-leaf path could repre...
分类:编程语言   时间:2014-05-12 01:28:30    阅读次数:440
线性表操作练习
/*1、线性表练习(1)从给定顺序表A中删除元素值在x到y(x=x&&A[i]max) max=A[i]; else if(A[i]data=e; L->next=NULL; } else { if(i==1) ...
分类:其他好文   时间:2014-05-11 23:26:26    阅读次数:384
HDU - 3401 Trade
题意:让你炒股票,每天都有买进的额度和价格以及卖出的额度和价格,并规定时间和最多的持有股票是多少,而且买卖操作要隔w+1天求最高的利润 思路:显然分三种情况:不买不卖,买,卖,设dp[i][j]表示第i天持有j股票的最高利润 如果不买不卖的话就是:dp[i][j]=dp[i-1][j]                                买: dp[i][j]=max(dp[i][...
分类:其他好文   时间:2014-05-11 21:18:05    阅读次数:323
c++ primer plus(第6版)中文版 第九章编程练习答案
第九章编程练习答案 9.1根据以下头文件内容编写多文件程序,提示用户输入姓名的等级,存在结构中(多文件编译时,要一起编译,g++ mian.cc golf.cc)...
分类:编程语言   时间:2014-05-11 20:42:15    阅读次数:532
leetcode --day12 Surrounded Regions & Sum Root to Leaf Numbers & Longest Consecutive Sequence
1、 ?? Surrounded Regions Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. For e...
分类:其他好文   时间:2014-05-11 18:52:32    阅读次数:293
C primer plus 学习随笔
数据类型int类型 printf()输出八进制整数时,用%o代替%d,输出十六进制时,用%x。 %#o、%#x和%#X分别生成0、0x、0X前缀。1 #include 2 int main(void)3 {4 int x = 100;5 printf("dec = %d; oc...
分类:其他好文   时间:2014-05-11 17:50:15    阅读次数:379
Hibernate查询方式---HQL方式
这一种我最常用,也是最喜欢用的,因为它写起来灵活直观,而且与所熟悉的SQL的语法差不太多。条件查询、分页查询、连接查询、嵌套查询,写起来与SQL语法基本一致,唯一不同的就是把表名换成了类或者对象。其它的,包括一些查询函数(count(),sum()等)、查询条件的设定等,全都跟SQL语法一样。###...
分类:系统相关   时间:2014-05-11 17:36:26    阅读次数:290
[LeetCode]Binary Tree Maximum Path Sum, 解题报告
题目 Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree,...
分类:其他好文   时间:2014-05-11 03:25:24    阅读次数:298
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!