| title | Algorithm4 Java Solution 1.3.28 | ||
|---|---|---|---|
| date | 2019-07-04 05:47:10 +0800 | ||
| draft | false | ||
| tags |
|
||
| categories |
|
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));
}