码迷,mamicode.com
首页 >  
搜索关键字:max sum plus plus    ( 46271个结果
C语言基础学习6: 指向函数的指针
1、函数指针变量调用函数 1 #include 2 int max(int x, int y); 3 int max(int x, int y) 4 { 5 int z; 6 if(x 2 int max(int x, int y); 3 int max(int x, int y)...
分类:编程语言   时间:2014-07-22 22:48:34    阅读次数:232
LeetCode_38combinationSum [Combination Sum]
#pragma warning(disable:4996) #include <cstdio> #include <tchar.h> #include <Windows.h> #include <vector> using namespace std; /* submit time : 4 1.Runtime Error Last executed input: [1], 2...
分类:其他好文   时间:2014-07-22 09:03:04    阅读次数:285
兼容IE6、IE7的min-width、max-width
警句:珍爱生命,远离IE 很多时候,我们会想要设置容器的最小宽度或最大宽度,但IE6不支持min-width、max-width属性怎么办? 别着急,跟着我慢慢来,会让你捉急的还很多呢 首先我们来看看标准属性min-width、max...
分类:其他好文   时间:2014-07-22 08:34:35    阅读次数:257
grails的criteria实现复合查询并实现结果分页
def search = { ??????? if(!params.max) params.max = 10 ??????? if(!params.offset) params.offset = 0 ??????? def searchClosure =? { ??????????? if(params.categoryNa...
分类:其他好文   时间:2014-07-22 08:16:36    阅读次数:271
HDU1050
移动房间桌子问题通过建立数组作为此房间对应走廊的重叠次数,达到最大的重叠次数及是总时间的10分之1代码: 1 #include 2 #include 3 #include 4 using namespace std; 5 #define MAX 201 6 int f(int n){ 7 r...
分类:其他好文   时间:2014-07-21 10:22:44    阅读次数:228
Hive使用中遇到的几个小问题
#### 1. 在Hive中使用show tables;等命令报错:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes **解决办法:** 到mysql中的hive数据库里...
分类:其他好文   时间:2014-07-21 10:12:36    阅读次数:453
【leetcode刷题笔记】Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-07-21 10:00:12    阅读次数:185
C++ Find Min and Max element in a BST
对于一个二叉搜索树, 要想找到这棵树的最小元素值, 我们只需要从树根开始, 沿着left 孩子指针一直走, 知道遇到NULL(即走到了叶子), 那么这个叶子节点就存储了这棵二叉搜索树的最小元素。 同理, 从根节点开始, 沿着right 孩子指针, 最终找到的是最大关键字的节点。  也就是说寻找BST最小关键字的元素和最大关键字的元素的代码是对称的。伪代码如下: TREE_MINIMUM(x...
分类:编程语言   时间:2014-07-21 09:28:27    阅读次数:241
LeetCode:Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-07-21 09:14:10    阅读次数:168
hdu3280Equal Sum Partitions (区间DP)
Problem Description An equal sum partition of a sequence of numbers is a grouping of the numbers (in the same order as the original sequence) in such a way that each group has the same sum. For examp...
分类:其他好文   时间:2014-07-20 15:42:42    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!