码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle pas    ( 2128个结果
Leetcode#120 Triangle
原题地址数字三角,经典动归题。编码时可状态压缩成1维数组代码: 1 int minimumTotal(vector > &triangle) { 2 if (triangle.empty()) return -1; 3 4 vector layer(...
分类:其他好文   时间:2015-01-30 17:33:18    阅读次数:143
Triangle
https://oj.leetcode.com/problems/triangle/Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers o...
分类:其他好文   时间:2015-01-29 22:27:51    阅读次数:189
【c++程序】函数指针
#include #include using namespace std; float (*fp)(float&,float&); void (*p)(float &,float &); float triangle(float &x,float &y) { return x*y*0.5; } float rectangle(float &x,float &y) { return x*y; ...
分类:编程语言   时间:2015-01-29 17:44:42    阅读次数:303
欧拉计划(python) problem 18
Maximum path sum I Problem 18 By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 ...
分类:编程语言   时间:2015-01-29 14:38:58    阅读次数:330
Delhi 安装ocx的方法
Delhi 安装ocx的方法1.通过cmd注册2.通过delphi 注册然后 可以修改 classnames 改成__tlb.pas单元中的控件的名称,就可以了例如下图:
分类:其他好文   时间:2015-01-28 12:46:56    阅读次数:248
codeforces--A - Pasha and Pixels--B - Anton and currency you all know
A - Pasha and Pixels Time Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status   Appoint description:  System Crawler  (2015-01-28) Description Pas...
分类:其他好文   时间:2015-01-28 11:11:34    阅读次数:281
jdbc数据库连接
/*************************************测试中使用使用临时数据源代码************************************************/ String url = "jdbc:mysql://localhost:3306/test" ; String username = "root" ; String pas...
分类:数据库   时间:2015-01-28 09:54:24    阅读次数:257
LeetCode119——Pascal's Triangle II
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 use only O(k) extra space? 题目大意 给定一个索引k,...
分类:其他好文   时间:2015-01-27 18:21:38    阅读次数:172
让 Delphi 程序只运行一个副本
program mutex; uses ? Windows, ? Forms, ? Unit1 in ‘Unit1.pas‘ {Form1}; {$R *.res} const ? MutexStr = ‘4C3201D5-6A5A-4B8B-A2F0-B103985705F4‘; // GUID var ? hAppMutex: THandle; begin ? Report...
分类:Windows程序   时间:2015-01-27 09:36:30    阅读次数:196
Pascal's Triangle
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]...
分类:其他好文   时间:2015-01-26 22:24:35    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!