码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle    ( 1342个结果
HUNAN 11562 The Triangle Division of the Convex Polygon(大卡特兰数)
http://acm.hunnu.edu.cn/online/?action=problem&type=show&id=11562&courseid=0求n边形分解成三角形的方案数。就是求n-2个卡特兰数,从大神那盗取了一份模板,效率极高.同时也很复杂. 1 #include 2 #inclu...
分类:其他好文   时间:2015-08-13 21:48:26    阅读次数:181
【LeetCode-面试算法经典-Java实现】【118-Pascal's Triangle(帕斯卡三角形)】
【118-Pascal’s Triangle(帕斯卡三角形)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given numRows, generate the first numRows of Pascal’s triangle.   For example, given numRows = 5,   Return[ [1], [1,1],...
分类:编程语言   时间:2015-08-13 07:48:37    阅读次数:220
【LeetCode-面试算法经典-Java实现】【119-Pascal's Triangle II(帕斯卡三角形(杨辉三角)II)】
【119-Pascal’s Triangle II(帕斯卡三角形II)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an index k, return the kth row of the Pascal’s triangle.   For example, given k = 3,   Return [1,3,3,1].   Note:   Co...
分类:编程语言   时间:2015-08-13 07:48:37    阅读次数:176
css写三角形
#triangle-bottomright{width: 0px;height: 0px;border-bottom: 100px solid red;border-left: 100px solid transparent;}
分类:Web程序   时间:2015-08-12 21:14:43    阅读次数:103
[LeetCode] Triangle
Triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], ...
分类:其他好文   时间:2015-08-12 19:35:23    阅读次数:103
Pascal's Triangle(帕斯卡三角)
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:其他好文   时间:2015-08-12 18:22:57    阅读次数:90
【LeetCode】118 - Pascal's Triangle
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:其他好文   时间:2015-08-10 21:55:24    阅读次数:125
【LeetCode】119 - Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2015-08-10 21:48:30    阅读次数:114
杭电4324--Triangle LOVE(拓扑排序)
Triangle LOVETime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3479Accepted Submission(s): 1350Probl...
分类:编程语言   时间:2015-08-10 19:29:35    阅读次数:166
POJ 1163&& 3176 The Triangle(DP)
The Triangle Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 41169   Accepted: 24882 Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure...
分类:其他好文   时间:2015-08-10 09:29:03    阅读次数:101
1342条   上一页 1 ... 74 75 76 77 78 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!