717. 1-bit and 2-bit Characters
We have two special characters:
- The first character can be represented by one bit
0.- The second character can be represented by two bits (
10or11).Given a binary array
bitsthat ends with0, returntrueif the last character must be a one-bit character.
1 | class Solution { |