comefrom: <awangdev>Triangles_3.java
code: public int minimumTotal(List<List<Integer>> triangle) {
          if (triangle == null || triangle.size() == 0) {
              return 0;
          }
          int n = triangle.size();
          int[] dp = new int[n];
          for (int j = 0; j < n; j++) {
              dp[j] = triangle.get(n - 1).get(j);
          }
  
          for (int i = n - 2; i >= 0; i--) {
              for (int j = 0; j <= i; j++) {
                  dp[j] = Math.min(dp[j], dp[j + 1]) + triangle.get(i).get(j);
              }
          }
          return dp[0];
      }
masked: public int sample_funcname ( List < List < Integer >> var_2 ) {
    if ( var_2 == null || var_2 . size ( ) == 0 ) {
      return 0 ;
    }
    int var_6 = var_2 . size ( ) ;
    int [ ] var_7 = new int [ var_6 ] ;
    for ( int var_8 = 0 ;
    var_8 < var_6 ;
    var_8 ++ ) {
      var_7 [ var_8 ] = var_2 . get ( var_6 - 1 ) . get ( var_8 ) ;
    }
    for ( int var_12 = var_6 - 2 ;
    var_12 >= 0 ;
    var_12 -- ) {
      for ( int var_8 = 0 ;
      var_8 <= var_12 ;
      var_8 ++ ) {
        var_7 [ var_8 ] = Math . min ( var_7 [ var_8 ] , var_7 [ var_8 + 1 ] ) + var_2 . get ( var_12 ) . get ( var_8 ) ;
      }
    }
    return var_7 [ 0 ] ;
  }
  