mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-01-12 18:08:38 +08:00
5 lines
137 B
Python
5 lines
137 B
Python
def isOneBitCharacter(self, bits: List[int]) -> bool:
|
|
i,n=0,len(bits)
|
|
while i < n-1:
|
|
i += bits[i] + 1
|
|
return i == n-1 |