码迷,mamicode.com
首页 >  
搜索关键字:minimum path sum    ( 52602个结果
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-07-22 23:07:13    阅读次数:379
Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2014-05-01 14:47:09    阅读次数:409
整理,模板
组合数学、-排列组合数----sum求sum=sum*(m--)/i;int c(int n,int m)//n下标,m上标{ int sum=1; for(int i=1;in-m) m=n-m; int temp=n; for(int i=1;i1) { up[j]/=temp; d...
分类:其他好文   时间:2014-05-01 01:07:44    阅读次数:409
等值首尾和问题及其思考、解决和总结
问题 等值首尾和 假设有一个数组x[],它有n个元素,每一个都大于零;称x[0] + x[1] + … + x[i]为前置和(Prefix Sum),而x[j] + x[j+1] + … + x[n-1]为后置和(Suffix Sum)。试编写一个程序,求出x[]中有多少组相同的前置和与后置和。 最...
分类:其他好文   时间:2014-05-01 00:14:05    阅读次数:743
JDK Environment Variable And Change default JDK
Environment Variable :change(import) /etc/bashrc export JAVA_HOME=/software/jdk1.8.0 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/li...
分类:其他好文   时间:2014-04-30 23:18:44    阅读次数:386
Leetcode:Minimum Path Sum 最小路径和
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2014-04-28 10:46:41    阅读次数:311
Docker常用命令
Usage: docker [OPTIONS] COMMAND [arg...]  -H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use A self-sufficient runtime for linux containers. Co...
分类:其他好文   时间:2014-04-28 10:17:41    阅读次数:359
Timus 1120. Sum of Sequential Numbers 数学题
There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all. Input There is the only number N, 1 ≤ N ≤ 109. O...
分类:其他好文   时间:2014-04-27 21:38:05    阅读次数:544
交叉编译QT环境的搭建
前提:你的Linux下有已经搭建好的交叉编译链(如arm-linux-gcc 4.3.2),并且已经设置好环境变量。 export PATH=/usr/local/arm/4.3.2/bin:/$PATH   1.下载文件如:qt-everywhere-opensource-src-4.6.3.tar.gz解压 2.裁剪QT ./configure -prefix /usr/loc...
分类:其他好文   时间:2014-04-27 21:26:59    阅读次数:363
mysql常用查询:group by,左连接,子查询,having where
前几天去了两个比较牛的互联网公司面试,在sql这块都遇到问题了,哎,可惜呀,先把简单的梳理一下 成绩表 score 1、group by 使用 按某一个维度进行分组 例如: 求每个同学的总分 SELECT student,SUM(score) FROM score GROUP BY student 求每个同学的平均分 SELECT student,AVG(score) FR...
分类:数据库   时间:2014-04-27 21:17:59    阅读次数:614
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!