今天去笔试了一家公司,题目是打印一个直角三角形 条件是只能用一重for循环 我当时想岔了,一心只想着用数组,其实不用数组也完全可以的,用ArrayList打印一下就好了 import java.util.ArrayList; public class Triangle { public static ...
分类:
其他好文 时间:
2016-09-30 18:46:12
阅读次数:
112
119. 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 opt ...
分类:
其他好文 时间:
2016-09-30 01:21:21
阅读次数:
178
118. Pascal's Triangle Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return ...
分类:
其他好文 时间:
2016-09-28 13:05:39
阅读次数:
142
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 example, given the fo ...
分类:
其他好文 时间:
2016-09-25 18:43:22
阅读次数:
108
linux 通过dlopen来实现: 生成动态库:g++ -fPIC -shared triangle.cpp -o triangle.so 生成test主函数:g++ -fPIC test.cpp -ldl -o test 具体demo:http://files.cnblogs.com/files ...
分类:
编程语言 时间:
2016-09-22 23:46:34
阅读次数:
203
针对如下形式的ACM试题,大多出自南阳理工学院的在线ACM试题(网址: 南阳理工在线评测系统),在此非常感谢,同时也非常感谢作者的分享! 时间限制:1000 ms | 内存限制:65535 KB 难度:4 针对如下形式的ACM试题,大多出自南阳理工学院的在线ACM试题(网址: 南阳理工在线评测系统) ...
分类:
其他好文 时间:
2016-09-18 23:47:18
阅读次数:
215
课程链接:目标2017初中数学联赛集训队-1(赵胤授课) 1、直角 $\triangle{ABC}$ 中, $AD$ 是斜边上的高, $I_1, I_2$ 是 $\triangle{ABD}, \triangle{ACD}$ 的内心, 求证: $B, C, I_2, I_1$ 四点共圆. 证明: 考 ...
分类:
其他好文 时间:
2016-09-15 07:31:36
阅读次数:
1070
Description Memory is now interested in the de-evolution of objects, specifically triangles. He starts with an equilateral triangle of side length x, ...
分类:
其他好文 时间:
2016-09-12 22:05:43
阅读次数:
131
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. 分析 二项式展开式的系数 不加(long long)提交会出错。 ...
分类:
其他好文 时间:
2016-09-12 00:25:55
阅读次数:
122
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return ...
分类:
其他好文 时间:
2016-09-12 00:18:46
阅读次数:
320