码迷,mamicode.com
首页 >  
搜索关键字:pascal    ( 1256个结果
那条矩阵乘法的不归路——数列
话说今天搜矩阵相乘,没有一个人用pascal写,是不是学到矩阵相乘的孩子都果断转c++了。。。我可是有良心的写博人,当然附上pascal代码故事开始了今天看到这样一个题a[1]=a[2]=a[3]=1a[x]=a[x-3]+a[x-1] (x>3)求a数列的第n项对1000000007(10^9+7...
分类:其他好文   时间:2015-08-19 22:48:49    阅读次数:249
最小生成树-Prim算法
Prim算法是和Kruskal算法对应的一个避圈法,两者的百度百科都写得蛮好,不赘述 代码 PASCAL代码 c代码 C++代码 Mathematica代码(如下)Prim[tu_, dian_] := Module[(*中括号要紧跟Module*) {diancount = 1,(*点集*)...
分类:编程语言   时间:2015-08-19 19:45:32    阅读次数:151
Delphi常用排序
1.冒泡排序Delphi/Pascal code?1234567891011121314151617procedureBubbleSort(varx:arrayofinteger);vari,j,intTmp:integer;beginfori:=0tohigh(x)dobeginforj:=0to...
分类:编程语言   时间:2015-08-18 18:35:17    阅读次数:132
【转】android 开发 命名规范
原文网址:http://www.cnblogs.com/ycxyyzw/p/4103284.html标识符命名法标识符命名法最要有四种:1驼峰(Camel)命名法:又称小驼峰命名法,除首单词外,其余所有单词的第一个字母大写。2帕斯卡(pascal)命名法:又称大驼峰命名法,所有单词的第一个字母大写3...
分类:移动开发   时间:2015-08-17 21:37:27    阅读次数:140
[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-08-17 11:57:41    阅读次数:152
【转载】Android 开发 命名规范
原文地址:http://www.cnblogs.com/ycxyyzw/p/4103284.html标识符命名法标识符命名法最要有四种:1驼峰(Camel)命名法:又称小驼峰命名法,除首单词外,其余所有单词的第一个字母大写。2帕斯卡(pascal)命名法:又称大驼峰命名法,所有单词的第一个字母大写3...
分类:移动开发   时间:2015-08-16 18:04:39    阅读次数:135
LeetCode:Pascal‘s Triangle II - 帕斯卡三角形2
1、题目名称 Pascal‘s Triangle II(帕斯卡三角形2) 2、题目地址 https://leetcode.com/problems/pascals-triangle-ii/ 3、题目内容 英文:Given an index k, return the kth row of the Pascal‘s triangle. 中文...
分类:其他好文   时间:2015-08-15 16:45:00    阅读次数:155
LeetCode:Pascal‘s Triangle - 帕斯卡三角形
1、题目名称 Pascal‘s Triangle(帕斯卡三角形) 2、题目地址 https://leetcode.com/problems/pascals-triangle/ 3、题目内容 英文:Given numRows, generate the first numRows of Pascal‘s triangle. 中文:给出...
分类:其他好文   时间:2015-08-15 12:09:47    阅读次数:406
[LeetCode]Pascal's Triangle
称号:定行数n,生成n帕斯卡三角行算法:步骤通过阵列工序public class Solution { public List> generate(int numRows) { if (numRows > pascalTriangle = new ArrayList>(); ...
分类:其他好文   时间:2015-08-15 09:04:28    阅读次数:81
【UVa 10815】Andy's First Dictionary
真的只用set和string就行了。如果使用PASCAL的同学可能就要写个treap什么的了,还要用ansistring。#include#include#include#include#includeusing namespace std;string s;string now;set dict;...
分类:其他好文   时间:2015-08-14 11:39:46    阅读次数:131
1256条   上一页 1 ... 73 74 75 76 77 ... 126 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!