a simple java interview question (3)

xiaoxiao2026-06-18  18

There is a node Class ,as the following , how to implement a getMaxValue method with recursion ?

(抱歉,英语不是太好,只能这么写了,用递归实现一个getMaxValue 方法。

 

class Node {  public int value; public Node next;

}

 

public class Recursion {

 public Node getMaxValue(Node aNode) {   }}

 

 

转载请注明原文地址: https://www.6miu.com/read-5050347.html

最新回复(0)