码迷,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...
分类:其他好文   时间:2014-12-16 19:07:17    阅读次数:167
类的组合 构造函数的用法
在一个类中内嵌另一个类的对象作为数据成员,称为类的组合。该内嵌对象称为对象成员,或者子对象。如三角形类Triangle类的内嵌Node类作为数据成员;class Triangle{private: Node *nodei; //对象成员 Node *nodej; Node *no...
分类:其他好文   时间:2014-12-14 17:03:02    阅读次数:299
CSS 魔法系列:纯 CSS 绘制三角形(各种角度)
Triangle Up1234567#triangle-up {width:0;height:0;border-left:50pxsolidtransparent;border-right:50pxsolidtransparent;border-bottom:100pxsolidred;} Tri....
分类:Web程序   时间:2014-12-12 23:29:46    阅读次数:199
leetcode:Triangle
如图,在一个三角形二维数组中有一系列数,求出从顶层到底层最小和的路径。...
分类:其他好文   时间:2014-12-10 22:52:20    阅读次数:234
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?...
分类:其他好文   时间:2014-12-10 21:16:44    阅读次数:201
三角形类的建立和初步调试
现在的三角形Triangle还比较简单,只有三个点(private)nodei_,nodej_,nodem_。功能也仅仅是初始化三个点init(),打印三角形三个点坐标print()。首先是Node类,定义在“Node.h”中,如下:class Node{private: double x_;...
分类:其他好文   时间:2014-12-09 22:52:11    阅读次数:154
Pascal's Triangle
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41827325 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] ]...
分类:其他好文   时间:2014-12-09 21:39:15    阅读次数:216
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] ] #include #include int **g...
分类:其他好文   时间:2014-12-09 21:36:25    阅读次数:167
打印特殊三角形
/* Unusual Triangle */#include #include #define LEN 256int main(void){ long n; long i, j; int upperRecord[LEN]; int curRecord[LEN]; cha...
分类:其他好文   时间:2014-12-07 00:03:36    阅读次数:310
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, give...
分类:其他好文   时间:2014-12-06 06:33:39    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!