码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle    ( 1342个结果
[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 fol...
分类:其他好文   时间:2015-02-11 16:22:12    阅读次数:147
UVA - 11437 - Triangle Fun (计算几何~)
UVA - 11437 Triangle Fun Time Limit: 1000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu Submit Status Description Problem A Triangle Fun  Input: Standard Input ...
分类:其他好文   时间:2015-02-10 23:18:33    阅读次数:534
[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] ] 这道题很简单,就...
分类:其他好文   时间:2015-02-09 14:08:34    阅读次数:130
[LeetCode]118.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] ]思路模拟代码 /**----------------...
分类:其他好文   时间:2015-02-06 13:18:04    阅读次数:132
[LeetCode]119.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 you optimize your algorithm to use only O(k) extra space?...
分类:其他好文   时间:2015-02-06 13:15:11    阅读次数:218
POJ 1163 The Triangle
题目链接:http://poj.org/problem?id=1163 The Triangle Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 39022   Accepted: 23430 Description 7 3 8 8 ...
分类:其他好文   时间:2015-02-05 23:29:14    阅读次数:416
最大分割三角数---Python
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The f...
分类:编程语言   时间:2015-02-05 20:02:02    阅读次数:181
【SICP练习】8 练习1.12
?? 这道练习的翻译有误。原文是:Write a procedure that computes elements of Pascal’s triangle bymeans of a recursive process.正确的翻译应该是计算帕斯卡三角形的各个元素。 y : 0       1 1      1  1 2    1  2  1 3   1  ...
分类:其他好文   时间:2015-02-05 16:24:31    阅读次数:138
[水题]ZOJ3038 Triangle War II
题意:给了这样一张图 有两种状态:pushed(*)和unpushed(.) 为方便起见分别成为 开 和 关改变一个点的开关状态 会同时改变与它相邻的点的开关状态 比如改变5,则2、3、4、6、8、9都会改变N(行数)最多为6 即 最多21个点求: 任意改变开关状态后 最多能有几个关着。为什么这么....
分类:其他好文   时间:2015-02-04 20:12:57    阅读次数:163
UVA - 11401 - Triangle Counting (递推!)
UVA - 11401 Triangle Counting Time Limit: 1000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu Submit Status Description Problem G Triangle Counting Input: Standa...
分类:其他好文   时间:2015-02-04 18:49:36    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!