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(...
分类:
其他好文 时间:
2014-10-17 18:24:18
阅读次数:
285
sqwswwEEEeUntitled Document 复习提纲 stereographic projection (definition and the way to find a projecting point) calculate square root for a given complex number triangle inequality differentiatio...
分类:
其他好文 时间:
2014-10-14 14:01:29
阅读次数:
412
DescriptionGiven a triangle ABC, the Extriangles of ABC are constructed as follows:On each side of ABC, construct a square (ABDE, BCHJ and ACFG in the...
分类:
其他好文 时间:
2014-10-13 14:38:59
阅读次数:
442
Triangle LOVE
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2586 Accepted Submission(s): 1051
Problem Description
Recently, sc...
分类:
其他好文 时间:
2014-10-13 13:08:05
阅读次数:
271
前面讲了谢尔宾斯基三角形,它是不停地将一个三角形拆分三个与之相似的三角形。这一节给大家展示的图形是将一个等腰钝角三角形不停地拆分两个与之相似的三角形。核心代码:static void SplitTriangle(const Vector3& v1, const Vector3& v2, con...
分类:
其他好文 时间:
2014-10-13 08:25:19
阅读次数:
413
Pascal's TriangleGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,...
分类:
其他好文 时间:
2014-10-12 23:31:28
阅读次数:
152
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:
其他好文 时间:
2014-10-12 16:41:38
阅读次数:
185
谢尔宾斯基三角形(英语:Sierpinski triangle)是一种分形,由波兰数学家谢尔宾斯基在1915年提出,它是一种典型的自相似集。也有的资料将其称之为谢尔宾斯基坟垛.其生成过程为:取一个实心的三角形。(多数使用等边三角形)沿三边中点的连线,将它分成四个小三角形。去掉中间的那一个小三角形。对...
分类:
其他好文 时间:
2014-10-12 01:53:17
阅读次数:
393
输入p n 求杨辉三角的n+1不能被p整除的数有多少个
Lucas定理:
A、B是非负整数,p是质数。AB写成p进制:A=a[n]a[n-1]...a[0],B=b[n]b[n-1]...b[0]。
则组合数C(A,B)与C(a[n],b[n])*C(a[n-1],b[n-1])*...*C(a[0],b[0]) mod p同余
即:Lucas(n,m,p)=c(...
分类:
其他好文 时间:
2014-10-11 15:25:35
阅读次数:
226
动态规划class Solution: # @param triangle, a list of lists of integers # @return an integer def minimumTotal(self, triangle): depth=len(tr...
分类:
其他好文 时间:
2014-10-10 20:59:14
阅读次数:
202