<qiyuangong>962_Maximum_Width_Ramp_1.java
public int maxWidthRamp(int[] A) {
        int N = A.length;
        Integer[] B = new Integer[N];
        for (int i = 0; i < N; ++i)
            B[i] = i;
        Arrays.sort(B, (i, j) -> ((Integer) A[i]).compareTo(A[j]));

        int ans = 0;
        int m = N;
        for (int i: B) {
            ans = Math.max(ans, i - m);
            m = Math.min(m, i);
        }
        return ans;
    }
public int sample_funcname ( int [ ] var_0 ) {
  int var_2 = var_0 . length ;
  Integer [ ] var_4 = new Integer [ var_2 ] ;
  for ( int var_6 = 0 ;
  var_6 < var_2 ;
  ++ var_6 ) var_4 [ var_6 ] = var_6 ;
  Arrays . sort ( var_4 , ( var_6 , var_9 ) -> ( ( Integer ) var_0 [ var_6 ] ) . compareTo ( var_0 [ var_9 ] ) ) ;
  int var_11 = 0 ;
  int var_12 = var_2 ;
  for ( int var_6 : var_4 ) {
    var_11 = Math . max ( var_11 , var_6 - var_12 ) ;
    var_12 = Math . min ( var_12 , var_6 ) ;
  }
  return var_11 ;
}
