mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-01-12 18:08:38 +08:00
717
This commit is contained in:
5
25/11/717.py
Normal file
5
25/11/717.py
Normal file
@@ -0,0 +1,5 @@
|
||||
def isOneBitCharacter(self, bits: List[int]) -> bool:
|
||||
i,n=0,len(bits)
|
||||
while i < n-1:
|
||||
i += bits[i] + 1
|
||||
return i == n-1
|
||||
Reference in New Issue
Block a user