码迷,mamicode.com
首页 >  
搜索关键字:path sum ii    ( 55953个结果
Sum square difference
简单:e sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 ...
分类:其他好文   时间:2014-05-07 20:23:43    阅读次数:338
HttpWebRequest / HttpWebResponse 远程获取文件信息
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(path+filename); //创建一个请求(获得需要的文件信息) HttpWebResponse myRes = (HttpWebResponse)myReq.GetRe...
分类:Web程序   时间:2014-05-07 17:00:11    阅读次数:270
LeetCode:Maximum Subarray
题目链接 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
shell 进制转换
包括:i.任意进制转化为十进制((num=base#number)) 【base和number必须一致,是同一种进制】ii.十进制转化为任意进制`echo "obase=进制;值"|bc` 和`echo "值 进制 o p"|bc` 【这里的值代表十进制数字】iii.任意进制互转;有了i和ii就可以...
分类:其他好文   时间:2014-05-07 16:40:14    阅读次数:272
截取运行模块地址
std::string GetFilePath() { char exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH); GetModuleFileName(NULL,exepath,MAX_PATH); tmp...
分类:其他好文   时间:2014-05-07 14:59:14    阅读次数:240
ProjectEuler_P13
Problem:Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.3710728753390210279879799822083759024651013574025046376...
分类:其他好文   时间:2014-05-07 13:34:38    阅读次数:299
POJ2288:Islands and Bridges(状态压缩)
Description Given a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, there...
分类:其他好文   时间:2014-05-07 13:04:35    阅读次数:402
leetcode第一刷_Best Time to Buy and Sell Stock II
这道题虽然是上一道题的增强,但是反而简单了。可以交易无数次,但是买卖必须成对的出现。 为了简单起见,我用abc三股股票来说明,且忽略掉相等的情况。三个数一共有六种大小关系。注意他们之间的先后顺序是不能乱的。 1. a 2. b 3. a 4. b 5. c 6. c 好的,你已经看出来了,只要当相邻的两个数是后面一个较大时,就之间累计上他们的差,否则,pass。直观一点的表述,只要...
分类:其他好文   时间:2014-05-07 12:33:11    阅读次数:512
搜索(DFS)
Sum It UpTime Limit:1000MSMemory Limit:10000KTotal Submissions:5684Accepted:2894DescriptionGiven a specified total t and a list of n integers, find al...
分类:其他好文   时间:2014-05-07 10:45:02    阅读次数:388
常用SQL命令
1、查看所有表的物理大小1 select segment_name, bytes from user_segments order by bytes desc2、查看表空間的名稱及大小1 select t.tablespace_name, round(sum(bytes/(1024*1024)),....
分类:数据库   时间:2014-05-07 00:30:02    阅读次数:1232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!