Skip to content

Commit f12fddb

Browse files
committed
daily
1 parent fee4595 commit f12fddb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

my-submissions/e717.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def isOneBitCharacter(self, bits: List[int]) -> bool:
3+
indx = 0
4+
while indx <= len(bits) - 2 :
5+
indx += bits[indx] + 1
6+
7+
return indx == len(bits) - 1

0 commit comments

Comments
 (0)