码迷,mamicode.com
首页 >  
搜索关键字:pascal    ( 1256个结果
C语言有哪些特点
C语言通常称为中级计算机语言。中级语言并没有贬义,不意味着它功能差、难以使用、或者比BASIC、Pascal那样的高级语言原始,也不意味着它与汇编语言相似,会给使用者带来类似的麻烦。C语言之所以被称为中级语言,是因为它把高级语言的成分同汇编语言的功能结合起来了。作为中级语言,C允许对位、字节和地址这...
分类:编程语言   时间:2015-06-02 14:48:58    阅读次数:106
分割字符串 ExtractStrings
//分割字符串 ExtractStringsvar s: String; List: TStringList;begin s := 'about: #delphi; #pascal, programming'; List := TStringList.Create; ExtractStri...
分类:其他好文   时间:2015-05-30 00:30:04    阅读次数:145
LeetCode 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? 题意:和上一题差别在于只能用...
分类:其他好文   时间:2015-05-29 12:07:02    阅读次数:124
119 Pascal's Triangle
public class Solution { public ArrayList getRow(int rowIndex) { ArrayList res = new ArrayList(); if (rowIndex = 0; j--) { ...
分类:其他好文   时间:2015-05-29 07:30:39    阅读次数:158
从面向过程到面向对象
从 IBM 公司的约翰·巴库斯在 1957 年开发出世界上第一个高级程序设计语言 Fortran 至今,高级程序设计语言的发展已经经历了整整半个世纪。在这期间,程序设计语言主要经历了从面向过程(如 C 和 Pascal 语言)到面向对象(如:C++、Java、Objective-C),再到面向组件编程(如 .NET 平台下的 C# 语言),以及正在快速发展的面向服务架构技术(如 SOA 和 WebService)。...
分类:其他好文   时间:2015-05-27 15:54:11    阅读次数:251
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]. 思路分析:依次计算每一行的值,把它们存在同一个数组里。 代码: class Solution { public: vector ...
分类:其他好文   时间:2015-05-27 15:47:51    阅读次数:93
Java语言的十二大特色
1、Java是简单的Java与C++极为相似,但却简单得多。高级编程语言的所有特性中,不是绝对需要的都已删去了。例如,Java没有算符过载、标题文件、预处理、指针运算、结构、联合、多维数组、模板及隐式类型变换。如果你知道一点C、C++或Pascal,你很快就会驾驭Java。这里是一个简单的JavaH...
分类:编程语言   时间:2015-05-26 15:37:58    阅读次数:130
LeetCode Pascal's Triangle
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] ] 题意:按照图生成矩阵。 思路:类似杨辉三角的做法。 ...
分类:其他好文   时间:2015-05-26 14:27:03    阅读次数:128
Pascal's Triangle
题目描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence ...
分类:其他好文   时间:2015-05-26 10:43:32    阅读次数:129
LeetCode--Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].问题描述:给出一个整数K,返回杨辉三角的第k行(行号从0开始)。问题解决:要首先计算出前面一行,一次类推...
分类:其他好文   时间:2015-05-25 22:12:52    阅读次数:119
1256条   上一页 1 ... 83 84 85 86 87 ... 126 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!