We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee4595 commit f12fddbCopy full SHA for f12fddb
my-submissions/e717.py
@@ -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