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 1157c73 commit ad3f228Copy full SHA for ad3f228
268. Missing Number.py
@@ -0,0 +1,8 @@
1
+class Solution:
2
+ def missingNumber(self, nums: List[int]) -> int:
3
+ n = len (nums)
4
+ for i in range (n+1):
5
+ if i in nums:
6
+ continue
7
+ else:
8
+ return i
0 commit comments