All pastes #763862 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-11-06 20:21 UTC
rendered paste body
 51    public int maxR(int[] v){ 52       return maxR2(v, 1, 0); 53    } 54 55    private int maxR2(int[] v, int y, int z){ 56       int x = v[z]; 57       if(y == v.length-1){ 58       } 59       else{ 60          if( x < v[y]){ 61             x = v[y]; 62          } 63          maxR2(v, y+1, x); 64       } 65       return v[x]; 66    }