码迷,mamicode.com
首页 >  
搜索关键字:triangle    ( 1341个结果
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 fol...
分类:其他好文   时间:2014-07-09 23:00:38    阅读次数:208
Problem Pascal's Triangle II
Problem Description:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your alg...
分类:其他好文   时间:2014-07-07 15:47:17    阅读次数:272
Problem Pascal's Triangle
Problem Description:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1...
分类:其他好文   时间:2014-07-07 15:41:32    阅读次数:247
Problem Triangle
Problem Description: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 ex...
分类:其他好文   时间:2014-07-07 15:29:11    阅读次数:280
ray与triangle/quad求交二三事
引擎中,ray与quad求交,算法未细看,但有求解二次方程,不解。ray与triangle求交,使用的是97年经典算法,仔细看过论文,多谢小武同学指点,用到了克拉默法则求解线性方程组。想模仿该方法,做ray与quad的求交,发现方程里不仅有u和v,还有uv,没法变换成线性方程组的形式。本以为引擎中q...
分类:其他好文   时间:2014-07-06 15:41:40    阅读次数:181
Uva488 Triangle Wave
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency. Input and Output The input begins with a single positive integer on a line by i...
分类:其他好文   时间:2014-07-03 17:15:14    阅读次数:204
LeetCode Pascal's Triangle II
class Solution {public: vector getRow(int rowIndex) { int half = (rowIndex + 1) / 2; int len = half * 2 + !(rowIndex & 0x1); ...
分类:其他好文   时间:2014-06-30 23:30:51    阅读次数:185
Leetcode-Pascal's Triangle
题目: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 分析:打印杨辉三角。numRows...
分类:其他好文   时间:2014-06-30 06:25:24    阅读次数:317
LeetCode:Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you maymove to adjacent numbers on the row below.For example, given the fol....
分类:其他好文   时间:2014-06-27 16:29:58    阅读次数:188
poj 1085 Triangle War (状压+记忆化搜索)
Triangle War Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2685   Accepted: 1061 Description Triangle War is a two-player game played on the following tria...
分类:其他好文   时间:2014-06-27 09:34:45    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!