comefrom: <qiyuangong>443_String_Compression_1.java
code: public int compress(char[] chars) {
          int anchor = 0, write = 0;
          for (int read = 0; read < chars.length; read++) {
              if (read + 1 == chars.length || chars[read + 1] != chars[read]) {
                  chars[write++] = chars[anchor];
                  if (read > anchor) {
                      for (char c: ("" + (read - anchor + 1)).toCharArray()) {
                          chars[write++] = c;
                      }
                  }
                  anchor = read + 1;
              }
          }
          return write;
      }
masked: public int sample_funcname ( char [ ] var_0 ) {
    int var_1 = 0 , var_2 = 0 ;
    for ( int var_3 = 0 ;
    var_3 < var_0 . length ;
    var_3 ++ ) {
      if ( var_3 + 1 == var_0 . length || var_0 [ var_3 + 1 ] != var_0 [ var_3 ] ) {
        var_0 [ var_2 ++ ] = var_0 [ var_1 ] ;
        if ( var_3 > var_1 ) {
          for ( char var_4 : ( "" + ( var_3 - var_1 + 1 ) ) . toCharArray ( ) ) {
            var_0 [ var_2 ++ ] = var_4 ;
          }
        }
        var_1 = var_3 + 1 ;
      }
    }
    return var_2 ;
  }
  