`
liu0107613
  • 浏览: 71486 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

a simple java interview question (3)

    博客分类:
  • java
阅读更多

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) {
  
 }
}

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics