comefrom: <awangdev>169. Majority Element_4.java
code: public int majorityElement(int[] nums) {
          if (nums == null || nums.length == 0) {
              return -1;
          }
          int majorityNum = nums[0];
          int vote = 0;
          for (int num : nums) {
              vote += num == majorityNum ? 1 : -1;
              if (vote == 0) {
                  majorityNum = num;
                  vote = 1;
              }
          }
          return majorityNum;
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    if ( var_0 == null || var_0 . length == 0 ) {
      return - 1 ;
    }
    int var_5 = var_0 [ 0 ] ;
    int var_6 = 0 ;
    for ( int var_7 : var_0 ) {
      var_6 += var_7 == var_5 ? 1 : - 1 ;
      if ( var_6 == 0 ) {
        var_5 = var_7 ;
        var_6 = 1 ;
      }
    }
    return var_5 ;
  }
  