Skip to content

Commit c29857b

Browse files
authored
Update findMissingNumInList.py
1 parent 615b012 commit c29857b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

findMissingNumInList.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,15 @@ def sumMethod(inputList):
77
# subtract sum of full range from supplied range
88
return fullSum - sum(inputList)
99
print(sumMethod([1,2,3]))
10+
11+
12+
13+
OR
14+
15+
def lookUpmethod(inputList):
16+
s = set(inputList)
17+
i = 1
18+
while i in s:
19+
i += 1
20+
return i
21+

0 commit comments

Comments
 (0)