comefrom: <awangdev>Ones and Zeroes_3.java
code: public int findMaxForm(String[] strs, int m, int n) {
          if (strs == null || strs.length == 0 || (m == 0 && n == 0)) {
              return 0;
          }
          int len = strs.length;
          int[][][] dp = new int[m + 1][n + 1][len + 1];
  
          for (int i = 0; i <= m; i++) {
              for (int j = 0; j <= n; j++) {
                  for (int k = 0; k <= len; k++) {
                      if (k == 0 || (i == 0 && j == 0)) {
                          dp[i][j][k] = 0;
                          continue;
                      }
                      char[] ss = strs[k - 1].toCharArray();
                      int countOne = 0;
                      int countZero = 0;
                      for (char c : ss) {
                          countOne += c == '1' ? 1 : 0;
                          countZero += c == '0' ? 1 : 0;
                      }
                       dp[i][j][k] = dp[i][j][k - 1]; 
                      if (i >= countZero && j >= countOne) {
                          dp[i][j][k] = Math.max(dp[i][j][k], dp[i - countZero][j - countOne][k - 1] + 1);
                      }
                  }
              }
          }
          return dp[m][n][len];
      }
masked: public int sample_funcname ( String [ ] var_0 , int var_1 , int var_2 ) {
    if ( var_0 == null || var_0 . length == 0 || ( var_1 == 0 && var_2 == 0 ) ) {
      return 0 ;
    }
    int var_3 = var_0 . length ;
    int [ ] [ ] [ ] var_4 = new int [ var_1 + 1 ] [ var_2 + 1 ] [ var_3 + 1 ] ;
    for ( int var_5 = 0 ;
    var_5 <= var_1 ;
    var_5 ++ ) {
      for ( int var_6 = 0 ;
      var_6 <= var_2 ;
      var_6 ++ ) {
        for ( int var_7 = 0 ;
        var_7 <= var_3 ;
        var_7 ++ ) {
          if ( var_7 == 0 || ( var_5 == 0 && var_6 == 0 ) ) {
            var_4 [ var_5 ] [ var_6 ] [ var_7 ] = 0 ;
            continue ;
          }
          char [ ] var_8 = var_0 [ var_7 - 1 ] . toCharArray ( ) ;
          int var_9 = 0 ;
          int var_10 = 0 ;
          for ( char var_11 : var_8 ) {
            var_9 += var_11 == '1' ? 1 : 0 ;
            var_10 += var_11 == '0' ? 1 : 0 ;
          }
          var_4 [ var_5 ] [ var_6 ] [ var_7 ] = var_4 [ var_5 ] [ var_6 ] [ var_7 - 1 ] ;
          if ( var_5 >= var_10 && var_6 >= var_9 ) {
            var_4 [ var_5 ] [ var_6 ] [ var_7 ] = Math . max ( var_4 [ var_5 ] [ var_6 ] [ var_7 ] , var_4 [ var_5 - var_10 ] [ var_6 - var_9 ] [ var_7 - 1 ] + 1 ) ;
          }
        }
      }
    }
    return var_4 [ var_1 ] [ var_2 ] [ var_3 ] ;
  }
  