Problem Description:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your alg...
分类:
其他好文 时间:
2014-07-07 15:47:17
阅读次数:
272
Problem Description:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1...
分类:
其他好文 时间:
2014-07-07 15:41:32
阅读次数:
247
Problem Description:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For ex...
分类:
其他好文 时间:
2014-07-07 15:29:11
阅读次数:
280
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.
Input and Output
The input begins with a single positive integer on a line by i...
分类:
其他好文 时间:
2014-07-03 17:15:14
阅读次数:
204
IOS7视频教程-storyboard与UIApplicationhttp://v.youku.com/v_show/id_XNzMxMjgwNzEy.html关东升老师的ios视频教程iPhone与iPad开发实战-ios经典应用剖析-7大项目实战开发1第1讲工具类应用密码生成(Amuck Pas...
分类:
移动开发 时间:
2014-07-02 00:45:06
阅读次数:
553
class Solution {public: vector getRow(int rowIndex) { int half = (rowIndex + 1) / 2; int len = half * 2 + !(rowIndex & 0x1); ...
分类:
其他好文 时间:
2014-06-30 23:30:51
阅读次数:
185
一、 创建互斥对象 在工程project1.dpr中创建互斥对象Program project1UsesWindows,Form,FrmMain in 'FrmMain.pas' {MainForm}; {$R *.res} var hAppMutex: THandle; //声明互斥变量 begi...
分类:
其他好文 时间:
2014-06-30 13:51:47
阅读次数:
176
题目:
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
分析:打印杨辉三角。numRows...
分类:
其他好文 时间:
2014-06-30 06:25:24
阅读次数:
317
火星探险源程序名 MAR.??? (PAS,C,CPP)输入文件名 MAR.IN输出文件名 MAR.OUT时间限制 1S问题描述:在2051年,若干火星探险队探索了这颗红色行星的不同的区域并且制作了这些区域的地图。现在, Baltic空间机构有一个雄心勃勃的计划:他们想制作一张整个行星的...
分类:
Web程序 时间:
2014-06-29 19:39:43
阅读次数:
376
Triangle War
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2685
Accepted: 1061
Description
Triangle War is a two-player game played on the following tria...
分类:
其他好文 时间:
2014-06-27 09:34:45
阅读次数:
286