<awangdev>717. 1-bit and 2-bit Characters_1.java
public boolean isOneBitCharacter(int[] bits) {
        if (bits == null || bits.length == 0) {
            return false;
        }
        int index = 0;
        while (index < bits.length - 1) {
            index += bits[index] % 2 == 1 ? 2 : 1;
        }
        return index == bits.length - 1;
    }
public boolean var_0 ( int [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) {
    return false ;
  }
  int var_5 = 0 ;
  while ( var_5 < var_1 . length - 1 ) {
    var_5 += var_1 [ var_5 ] % 2 == 1 ? 2 : 1 ;
  }
  return var_5 == var_1 . length - 1 ;
}
