comefrom: <awangdev>Maximum Vacation Days_1.java
code: public int maxVacationDays(int[][] flights, int[][] days) {
          int m = days[0].length; 
          int n = days.length; 
          int[][] dp = new int[m][n];
          
          for (int i = 0; i < m; i++) {
              for (int j = 0; j < n; j++) {
                  if (i == 0) {
                      dp[i][j] = j == 0 || flights[0][j] != 0 ? days[j][i]: Integer.MIN_VALUE;
                      continue;
                  }
                  dp[i][j] = Integer.MIN_VALUE;
                  for (int k = 0; k < m; k++) { 
                      if ((k == j || flights[k][j] == 1) && dp[i - 1][k] != Integer.MIN_VALUE) {
                          dp[i][j] = Math.max(dp[i - 1][k] + days[j][i], dp[i][j]);
                      }
                  }
              }
          }
          
          int max = 0;
          for (int i = 0; i < n; i++) {
              max = Math.max(max, dp[m - 1][i]);
          }
          return max;
      }
masked: public int sample_funcname ( int [ ] [ ] var_0 , int [ ] [ ] var_1 ) {
    int var_4 = var_1 [ 0 ] . length ;
    int var_5 = var_1 . length ;
    int [ ] [ ] var_6 = new int [ var_4 ] [ var_5 ] ;
    for ( int var_7 = 0 ;
    var_7 < var_4 ;
    var_7 ++ ) {
      for ( int var_8 = 0 ;
      var_8 < var_5 ;
      var_8 ++ ) {
        if ( var_7 == 0 ) {
          var_6 [ var_7 ] [ var_8 ] = var_8 == 0 || var_0 [ 0 ] [ var_8 ] != 0 ? var_1 [ var_8 ] [ var_7 ] : Integer . MIN_VALUE ;
          continue ;
        }
        var_6 [ var_7 ] [ var_8 ] = Integer . MIN_VALUE ;
        for ( int var_11 = 0 ;
        var_11 < var_4 ;
        var_11 ++ ) {
          if ( ( var_11 == var_8 || var_0 [ var_11 ] [ var_8 ] == 1 ) && var_6 [ var_7 - 1 ] [ var_11 ] != Integer . MIN_VALUE ) {
            var_6 [ var_7 ] [ var_8 ] = Math . max ( var_6 [ var_7 - 1 ] [ var_11 ] + var_1 [ var_8 ] [ var_7 ] , var_6 [ var_7 ] [ var_8 ] ) ;
          }
        }
      }
    }
    int max = 0 ;
    for ( int var_7 = 0 ;
    var_7 < var_5 ;
    var_7 ++ ) {
      max = Math . max ( max , var_6 [ var_4 - 1 ] [ var_7 ] ) ;
    }
    return max ;
  }
  