首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 计算最大金额可能当遍历一个三角形的整数,从上到下的java程序。

计算最大金额可能当遍历一个三角形的整数,从上到下的java程序。

资 源 简 介

This Java program finds the maximum sum of a traversal path through a triangle of numbers. A path can be formed through a triangle of numbers by starting at the top and repeatedly moving down one row at each step, and then choosing one of the two immediately diagonal elements. For example, the sum of the maximum traversal path for the given triangle below is 23: 3 7 4 2 4 68 5 9 3 That is, 3 + 7 + 4 + 9 = 23. This program loads the triangle data from a file and works for any number of rows.

文 件 列 表

triangle_2000_rows.txt
readme.txt
SolveTriangle.bat
TestTriangle.bat
triangle.txt
lib
junit-4.10.jar
triangle.jar
source
src
test

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.170514s