Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 419 Bytes

Ex_1_3_28.md

File metadata and controls

34 lines (23 loc) · 419 Bytes
title date draft tags categories
Algorithm4 Java Solution 1.3.28
2019-07-04 05:47:10 +0800
false
JAVA
TECH
archives

1.3.28

Problem:

Develop a recursive solution to the previous question.

Solution:

public static int recurMax(Node<Integer> n){
    if(n.next == null){
      return n.item;
    }
    return Math.max(n.item, recurMax(n.next));
}

Reference: