Skip to content

Commit ad3f228

Browse files
added daily challenge
1 parent 1157c73 commit ad3f228

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

268. Missing Number.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)