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 e56c662 commit b42cc9eCopy full SHA for b42cc9e
missing-number/hu6r1s.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def missingNumber(self, nums: List[int]) -> int:
3
+ for i in range(len(nums)):
4
+ if i not in nums:
5
+ return i
6
+ return len(nums)
0 commit comments