码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle pas    ( 2128个结果
[LeetCode] Triangle('Bottom-up' DP)
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-08-03 22:59:56    阅读次数:259
Pascal's Triangle
问题:输出杨辉三角分析:对于每一行收尾都等于1,其他位置f[i,j]=f[i-1,j-1]+f[i-1,j]class Solution {public: vector > generate(int numRows) { int i,j; if(numRows==0...
分类:其他好文   时间:2014-08-03 22:55:26    阅读次数:186
【noip模拟赛】 射击
这题似乎是什么安阳一中的模拟题,不管了,反正是学长出的noip模拟赛里面的题目。。。。射击(shoot.pas/.c/.cpp)时间限制:1s,内存限制128MB题目描述:据史书记载,对越反击战时期,有位中国侦察兵,他的代号叫814。一天他执行狙击任务,他的任务地区是n座恰巧在一条直线上的山。这些山...
分类:其他好文   时间:2014-08-03 20:23:15    阅读次数:307
HDU4324 Triangle LOVE 【拓扑排序】
Triangle LOVE Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2455    Accepted Submission(s): 997 Problem Description Recently, sci...
分类:其他好文   时间:2014-08-03 12:50:05    阅读次数:238
Pascal's Triangle 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:Could you optimize your algorithm to ....
分类:编程语言   时间:2014-08-03 05:24:06    阅读次数:304
Pascal's Triangle leetcode java(杨辉三角)
题目: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...
分类:编程语言   时间:2014-08-03 05:16:25    阅读次数:303
Triangle leetcode java
题目: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....
分类:编程语言   时间:2014-08-03 04:40:04    阅读次数:351
addWindowListener -> WindowAdapter -> windowClosing
Suppose we have a framefinal JFrame jframe = new JFrame("Triangle 3");To catch window closing events and quit, there are two ways (as I know):Way1.jfr...
分类:Windows程序   时间:2014-08-02 12:14:43    阅读次数:343
3D空间中射线与三角形的交叉检测算法
详解Ray-Triangle交叉检测算法,并且提供代码示例,供您参考...
分类:其他好文   时间:2014-08-01 13:47:21    阅读次数:284
D3D triangle list(三角形列) 小例子
D3D 三角形带 图元 例子程序...
分类:其他好文   时间:2014-07-31 21:00:17    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!