码迷,mamicode.com
首页 >  
搜索关键字:triangle    ( 1341个结果
Triangle
Dynamic ProgrammingGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For exa...
分类:其他好文   时间:2014-11-19 18:18:00    阅读次数:235
BZOJ1914 [Usaco2010 OPen]Triangle Counting 数三角形
hzwer已经说的很好了,在此只能跪烂了 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24...
分类:其他好文   时间:2014-11-17 17:42:11    阅读次数:245
QT Demo 之 threading(3) triangle
这一章我们对《QT Demo 之 threading》中的triangle函数实现进行分析和优化。...
分类:其他好文   时间:2014-11-17 14:07:53    阅读次数:172
CSS:不可思议的border属性
原文:Magic of CSS border property 译文:不可思议的CSS border属性 译者:dwqs 在CSS中,其border属性有很多的规则。对于一些事物,例如三角形或者其它的图像,我们仍然使用图片代替。但是现在就不需要了,我们可以用CSS形成一些基本图形,我分享了一些关于这方面的技巧。 1、正三角形: .triangle_up { height:0px; width:0px; border-bottom:50px solid #006633; border-l...
分类:Web程序   时间:2014-11-16 00:37:49    阅读次数:222
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]...
分类:其他好文   时间:2014-11-13 20:30:09    阅读次数:196
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(...
分类:其他好文   时间:2014-11-13 18:32:04    阅读次数:183
UVa 11401 - Triangle Countin
题目:给你n根长度分别为1,2,..,n的棍子,问能组成多少个不同的三角形。 分析:组合数学,计数原理。本题可以正向求解也可以反向求补集,这里采用正向求解。             1.首先写出前几组数据,找规律:{ 里面的括号是子情况 }             (4,3,(2))             (5,4,(3,2))             (6,5,(4,3,2))(6,...
分类:其他好文   时间:2014-11-12 16:35:21    阅读次数:155
[leetcode]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], [3,4...
分类:其他好文   时间:2014-11-11 21:09:06    阅读次数:207
[leetcode] 3. Pascal's Triangle
第三道还是帕斯卡三角,这个是要求正常输出,题目如下:Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5, Return[ [1], [1,1], ...
分类:其他好文   时间:2014-11-11 10:32:32    阅读次数:191
[leetcode] 2. Pascal's Triangle II
我是按难度往下刷的,第二道是帕斯卡三角形二。简单易懂,题目如下:Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3, Return [1,3,3,1].Note: Could y...
分类:其他好文   时间:2014-11-11 01:58:05    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!