码迷,mamicode.com
首页 >  
搜索关键字:triangle    ( 1341个结果
(leetcode)Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2015-05-05 12:19:56    阅读次数:152
leetcode_119——Pascal's Triangle II (简单题,简单的递归)
Pascal's Triangle IITotal Accepted:39663Total Submissions:134813My SubmissionsQuestionSolutionGiven an indexk, return thekthrow of the Pascal's triang...
分类:其他好文   时间:2015-05-04 20:03:59    阅读次数:117
leetcode_118题——Pascal's Triangle(简单的数学题)
Pascal's TriangleTotal Accepted:43845Total Submissions:145271My SubmissionsQuestionSolutionGivennumRows, generate the firstnumRowsof Pascal's triangle...
分类:其他好文   时间:2015-05-04 19:29:23    阅读次数:97
HDOJ 1030 Delta-wave
题目: Problem Description A triangle field is numbered with successive integers in the way shown on the picture below. The traveller needs to go from the cell with number M to the cell with...
分类:其他好文   时间:2015-05-04 13:55:46    阅读次数:122
LeetCode OJ:Pascal's Triangle II
题目:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onl...
分类:其他好文   时间:2015-05-04 13:28:57    阅读次数:115
递推DP POJ 1163 The Triangle
题目传送门 1 /* 2 数塔 3 自底向上 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std;12 13 const int MAXN...
分类:其他好文   时间:2015-04-29 19:42:27    阅读次数:158
[Codility] CountTriangles
A zero-indexed array A consisting of N integers is given. A triplet (P, Q, R) istriangularif it is possible to build a triangle with sides of lengths ...
分类:其他好文   时间:2015-04-28 20:52:42    阅读次数:210
第四周项目-1.1
#include #include using namespace std; class Triangle { public: double perimeter();//计算三角形的周长 double area();//计算并返回三角形的面积 void showMessage(); Triangle(double x, double y, double z); private:...
分类:其他好文   时间:2015-04-27 21:48:35    阅读次数:113
第四周项目-1.2
#include #include using namespace std; class Triangle { public: double perimeter();//计算三角形的周长 double area();//计算并返回三角形的面积 void showMessage(); Triangle(double x, double y, double z); private:...
分类:其他好文   时间:2015-04-27 21:47:52    阅读次数:122
第四周项目-1.3
#include #include using namespace std; class Triangle { public: double perimeter();//计算三角形的周长 double area();//计算并返回三角形的面积 void showMessage(); Triangle(double x, double y, double z); private:...
分类:其他好文   时间:2015-04-27 21:47:38    阅读次数:103
1341条   上一页 1 ... 89 90 91 92 93 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!