题目链接:https://leetcode.com/problems/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...
分类:
其他好文 时间:
2016-05-27 11:52:32
阅读次数:
158
程序地址:http://www.cheemoedu.com/exercise/4问题描述:根据输入行数,打印出杨辉三角,如图所示。111121133114641151010511615201561我的程序:deftriangle(x):
ln=[1]
ifx==1:
returnln
ifx==2:
returnln+[1]
n=0
whilen<(x-2):
s=triangle(x-1)[n]+triangle(x-1)[n+1]..
分类:
其他好文 时间:
2016-05-26 14:49:51
阅读次数:
139
多数图形软件包使用逼近平面片来显示曲面。这是因为平面方程是线性的,而处理线性方程比二次或其他类曲线方程快得多。因此OpenGL和其他图形软件包提供多边形图元来实施曲面的逼近。对象用多边形网络来建模,而几何和属性信息的数据库按处理多边形面片的目标来建立。在OpenGL中,可用于此目的的图元有三角形带(triangle strip )、三角形扇形(triangle fan)和四边形
带(quad strip )。高性能图形系统使用快速多边形硬件绘制,使得显示速度达到每秒形成百万以上的多边形(通常为三角形),包括...
分类:
其他好文 时间:
2016-05-22 12:25:47
阅读次数:
205
原性链继承方法中,javascript是通过另一个类的实例进行继承的(实际是用一个构造器函数的实体去覆盖另一个对象的原型)。如下代码:
TwoDShape.prototype = new Shape();
Triangle.prototype = new TwoDShape();
需要直接用new Shape()构造一个实体,然后才能通过该实体的属性完成相关的继承工作,而不是直接继承自Sha...
分类:
编程语言 时间:
2016-05-20 23:56:03
阅读次数:
324
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 us ...
分类:
其他好文 时间:
2016-05-20 19:03:08
阅读次数:
130
.hex_top_triangle{
width:0;
border-bottom:30pxsolid#6C6;
border-left:52pxsolidtransparent;
border-right:52pxsolidtransparent;
}
.hex_center_rect{
width:104px;
height:60px;
background-color:#6C6;
}
.hex_bottom_triangle{
width:0;
border-top:30pxsolid#6C6;
bor..
分类:
Web程序 时间:
2016-05-19 13:23:48
阅读次数:
182
Life of a triangle - NVIDIA's logical pipeline Facebook Twitter LinkedIn Google+ By Christoph Kubisch, posted Mar 16 2015 at 12:52PM Tags: GameWorks G ...
分类:
其他好文 时间:
2016-05-18 14:39:51
阅读次数:
274