comefrom: <awangdev>485. Max Consecutive Ones_1.java
code: public int findMaxConsecutiveOnes(int[] nums) {
          if (nums == null || nums.length == 0) {
              return 0;
          }
          int maxCount = 0;
          int count = 0;
          for (int i = 0; i < nums.length; i++) {
              if (nums[i] == 0) {
                  maxCount = Math.max(count, maxCount);
                  count = 0;
              } else {
                  count++;
              }
          }
          return Math.max(count, maxCount);
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    if ( var_0 == null || var_0 . length == 0 ) {
      return 0 ;
    }
    int var_1 = 0 ;
    int var_2 = 0 ;
    for ( int var_3 = 0 ;
    var_3 < var_0 . length ;
    var_3 ++ ) {
      if ( var_0 [ var_3 ] == 0 ) {
        var_1 = Math . max ( var_2 , var_1 ) ;
        var_2 = 0 ;
      }
      else {
        var_2 ++ ;
      }
    }
    return Math . max ( var_2 , var_1 ) ;
  }
  