title | date | draft | tags | categories | |||
---|---|---|---|---|---|---|---|
Algorithm4 Java Solution 1.3.28 |
2019-07-04 05:47:10 +0800 |
false |
|
|
Develop a recursive solution to the previous question.
public static int recurMax(Node<Integer> n){
if(n.next == null){
return n.item;
}
return Math.max(n.item, recurMax(n.next));
}