comefrom: <gouthampradhan>array_ChampagneTower_1.java
code: public double champagneTower(int poured, int query_row, int query_glass) {
      double[][] A = new double[query_row + 1][query_row + 1];
      A[0][0] = poured;
      for (int i = 1; i <= query_row; i++) {
        for (int j = 0; j <= query_row; j++) {
          if (A[i - 1][j] > 1.0) {
            A[i][j] += (A[i - 1][j] - 1.0) / 2;
          }
          if (j == 0) continue;
          if (A[i - 1][j - 1] > 1.0) {
            A[i][j] += (A[i - 1][j - 1] - 1.0) / 2;
          }
        }
      }
      if (A[query_row][query_glass] > 1.0) return 1;
      else return A[query_row][query_glass];
    }
masked: public double sample_funcname ( int var_0 , int var_1 , int var_2 ) {
    double [ ] [ ] var_4 = new double [ var_1 + 1 ] [ var_1 + 1 ] ;
    var_4 [ 0 ] [ 0 ] = var_0 ;
    for ( int var_6 = 1 ;
    var_6 <= var_1 ;
    var_6 ++ ) {
      for ( int var_7 = 0 ;
      var_7 <= var_1 ;
      var_7 ++ ) {
        if ( var_4 [ var_6 - 1 ] [ var_7 ] > 1.0 ) {
          var_4 [ var_6 ] [ var_7 ] += ( var_4 [ var_6 - 1 ] [ var_7 ] - 1.0 ) / 2 ;
        }
        if ( var_7 == 0 ) continue ;
        if ( var_4 [ var_6 - 1 ] [ var_7 - 1 ] > 1.0 ) {
          var_4 [ var_6 ] [ var_7 ] += ( var_4 [ var_6 - 1 ] [ var_7 - 1 ] - 1.0 ) / 2 ;
        }
      }
    }
    if ( var_4 [ var_1 ] [ var_2 ] > 1.0 ) return 1 ;
    else return var_4 [ var_1 ] [ var_2 ] ;
  }
  