所用语言 Java 所用知识 数组 解题思路 遍历找最大的即可。 完整代码 public int mostFruitTree (int[] fruit) { // write code here int fast=10; int max=fast; for(int i=0;i<fruit.length;i++){ fast=fast+fruit[i]; if(fast>max) max=fast; } return max; }