给定一个索引 k,返回帕斯卡三角形(杨辉三角)的第 k 行。例如,给定 k = 3,则返回 [1, 3, 3, 1]。注:你可以优化你的算法到 O(k) 的空间复杂度吗?详见:https://leetcode.com/problems/pascals-triangle-ii/description/ ...
分类:
其他好文 时间:
2018-04-05 13:27:18
阅读次数:
209
给定 numRows, 生成帕斯卡三角形的前 numRows 行。例如, 给定 numRows = 5,返回[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]详见:https://leetcode.com/problems/pascals-triangle/ ...
分类:
其他好文 时间:
2018-04-05 13:25:51
阅读次数:
162
Classes, structures, and enumerations can define subscripts, which are shortcuts for accessing the member elements of a collection, list, or sequence. ...
分类:
编程语言 时间:
2018-04-04 15:16:35
阅读次数:
146
Dev老版本中导出功能DxGrExpt.pas 正元16进制数据对应着xls文件的二进制格式 // Excel format const XLSBOF: array[0..4] of Word = ($409, 6, 0, $10, 0); XLSGUTS: array[0..5] of Word ... ...
分类:
其他好文 时间:
2018-04-02 20:13:07
阅读次数:
172
特殊权限set_uid概念:set_uid,当普通用户执行passwd命令时,可以**临时**拥有root权限。set_uid该权限针对二进制**可执行文件**,如:lspasswd如下命令,查看[root@zhangzhen-01~]#whichpasswd#查看这个命令在哪/usr/bin/passwd[root@zhangzhen-01~]#ls-l/usr/bin/passwd#查看pas
分类:
其他好文 时间:
2018-03-30 10:15:36
阅读次数:
189
Problem Write a program which judges wheather given length of three side form a right triangle. Print "YES" if the given sides (integers) form a right ...
分类:
其他好文 时间:
2018-03-26 22:33:36
阅读次数:
193
Software Testing, Lab 1 一.实验要求: a) Description of triangle problem: Function triangle takes three integers a,b,c which are length of triangle sides; c ...
分类:
其他好文 时间:
2018-03-26 00:49:15
阅读次数:
140
Junit and Eclemma 课题作业: 1.在eclipse内安装Junit,hamcrest和Eclemma。 2.编写一个判断三角形的程序并使用jUnit编写其测试类: Description of triangle problem: Function triangle takes th ...
分类:
其他好文 时间:
2018-03-26 00:45:28
阅读次数:
255
Tasks: Description of triangle problem: Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the triang ...
分类:
其他好文 时间:
2018-03-26 00:41:32
阅读次数:
173
软件测试作业——Junit使用 [TOC] 题目要求 1. Install Junit(4.12),Hamcrest(1.3) with Eclipse 2. Install Eclemma with Eclipse 3. Write a javaprogram for the triangle p ...
分类:
其他好文 时间:
2018-03-25 21:46:43
阅读次数:
255