码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle    ( 1342个结果
119. Pascal's Triangle II
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:其他好文   时间:2018-06-09 15:23:53    阅读次数:156
Cake(凸包+区间DP)
You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for the invited com ...
分类:其他好文   时间:2018-06-06 01:06:15    阅读次数:186
java类型信息之一---Class
RTTI RunTime Type Info 1. 多态 在面向对象语言中,接口的多种不同的实现方式即为多态。 多态是同一个行为具有多个不同表现形式或形态的能力。 多态就是同一个接口,使用不同的实例而执行不同操作。 Charlie Calverts对多态的描述——多态性是允许你将父对象设置成为一个或 ...
分类:编程语言   时间:2018-05-26 01:12:47    阅读次数:225
Java -- 1200例子
例006:编程输出星号组成的等腰三角形 1 /* 2 java 3 * 4 *** 5 ***** 6 ******* 7 ********* 8 9 输出完成 (耗时 0 秒) - 正常终止 10 */ 11 public class Triangle 12 { 13 public static ...
分类:编程语言   时间:2018-05-21 16:23:43    阅读次数:160
三角形最小路径和
中英题面 给定一个三角形,找出自顶向下的最小路径和。每一步只能移动到下一行中相邻的结点上。 Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbe ...
分类:其他好文   时间:2018-05-20 10:44:19    阅读次数:183
119. Pascal's Triangle II
这个直接计算杨辉三角某一行的算法有点骚。 ...
分类:其他好文   时间:2018-05-18 17:13:44    阅读次数:132
118. Pascal's Triangle
输出杨辉三角,比较简单,用两层循环,内层循环构造一行,外层循环将这行放入容器中。 ...
分类:其他好文   时间:2018-05-18 14:13:45    阅读次数:147
Boolean operations between triangle meshes
OpenCASCADE提供了基于BREP体的Boolean Operations,但是如果Topo体中只包含三角网格信息的话,是不支持布尔运算的。典型的例子就是由STL导入生成的模型在OpenCASCADE中是不能进行布尔运算。 有一些开源库提供了基于三角网格的布尔运算的功能。如MeshLab、C... ...
分类:其他好文   时间:2018-05-18 00:26:10    阅读次数:183
【TOJ 3005】Triangle(判断点是否在三角形内)
描述 Given the coordinates of the vertices of a triangle,And a point. You just need to judge whether the point is in the Triangle. Given the coordinates ...
分类:其他好文   时间:2018-05-14 23:06:36    阅读次数:284
Matlab---画图线型、符号及颜色
Matlab 画图 线形、颜色、数据点形状的选择 1,线形 - Solid line (default)-- Dashed line: Dotted line-. Dash-dot line 2,颜色 r Redg Greenb Bluec Cyanm Magentay Yellowk Blackw ...
分类:其他好文   时间:2018-05-08 14:39:30    阅读次数:175
1342条   上一页 1 ... 24 25 26 27 28 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!