<qiyuangong>717_1-bit_and_2-bit_Characters_1.java
public boolean isOneBitCharacter(int[] bits) {
        int pos = 0;
        while (pos < bits.length - 1) {
            pos += bits[pos] + 1;
        }
        return pos == bits.length - 1;
    }
public boolean var_0 ( int [ ] var_1 ) {
  int var_3 = 0 ;
  while ( var_3 < var_1 . length - 1 ) {
    var_3 += var_1 [ var_3 ] + 1 ;
  }
  return var_3 == var_1 . length - 1 ;
}
