码迷,mamicode.com
首页 >  
搜索关键字:pascal    ( 1256个结果
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? class Solution...
分类:其他好文   时间:2015-01-14 22:57:33    阅读次数:162
重读《现代编译原理》几句小感
最近重温了一下《现代编译原理》这本书,感觉与大学学习的时候,完全不是一个味道;深刻的懂得理论联系实际的感受,瞬间有一种, 编译器将汇编或高级计算机语言源程序(Source program)作为输入,翻译成目标语言(Target language)机器代码的等价程序。源代码一般为高级语言 (High-level language), 如Pascal、C、C++、Java、汉语编程等或汇...
分类:其他好文   时间:2015-01-14 16:58:48    阅读次数:142
GCC 常用命令讲解
1简介GCC 的意思也只是 GNU C Compiler 而已。经过了这么多年的发展,GCC 已经不仅仅能支持 C 语言;它现在还支持 Ada 语言、C++ 语言、Java 语言、Objective C 语言、Pascal 语言、COBOL语言,以及支持函数式编程和逻辑编程的 Mercury 语言,...
分类:其他好文   时间:2015-01-10 11:15:40    阅读次数:233
leetcode----------Pascal's Triangle
题目Pascal's Triangle通过率30.7%难度EasyGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], ...
分类:其他好文   时间:2015-01-10 11:14:01    阅读次数:207
leetcode----------Pascal's Triangle II
题目Pascal's Triangle II通过率29.8%难度EasyGiven an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you o...
分类:其他好文   时间:2015-01-10 11:09:53    阅读次数:169
gcc常用命令
1简介GCC 的意思也只是 GNU C Compiler 而已。经过了这么多年的发展,GCC 已经不仅仅能支持 C 语言;它现在还支持 Ada 语言、C++ 语言、Java 语言、Objective C 语言、Pascal 语言、COBOL语言,以及支持函数式编程和逻辑编程的 Mercury 语言,...
分类:其他好文   时间:2015-01-09 20:47:27    阅读次数:216
Pascal's Triangle
Pascal's Triangle...
分类:其他好文   时间:2015-01-09 10:54:22    阅读次数:121
[Leetcode][JAVA] Pascal's Triangle I, II
Pascal's Triangle:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3...
分类:编程语言   时间:2015-01-08 07:02:25    阅读次数:225
[LeetCode]118 Pascal's Triangle
https://oj.leetcode.com/problems/pascals-triangle/http://blog.csdn.net/linhuanmars/article/details/23311527publicclassSolution{ publicList<List<Integer>>generate(intnumRows){ List<List<Integer>>toReturn=newArrayList<>(); if(nu..
分类:其他好文   时间:2015-01-06 18:15:51    阅读次数:126
[LeetCode]119 Pascal's Triangle II
https://oj.leetcode.com/problems/pascals-triangle-ii/http://blog.csdn.net/linhuanmars/article/details/23311629publicclassSolution{ publicList<Integer>getRow(introwIndex) { //SolutionA: //returngetRow_OKSpace(rowIndex); //SolutionB: returngetRow_Extra..
分类:其他好文   时间:2015-01-06 18:15:30    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!