aboutsummaryrefslogtreecommitdiff
path: root/challenge-201/robert-dicicco/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-201/robert-dicicco/python/ch-1.py')
-rw-r--r--challenge-201/robert-dicicco/python/ch-1.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/challenge-201/robert-dicicco/python/ch-1.py b/challenge-201/robert-dicicco/python/ch-1.py
new file mode 100644
index 0000000000..554d7da0bf
--- /dev/null
+++ b/challenge-201/robert-dicicco/python/ch-1.py
@@ -0,0 +1,47 @@
+#!/usr/bin/env python
+
+'''
+
+AUTHOR: Robert DiCicco
+
+DATE: 2023-01-23
+
+Challenge 201 Missing Numbers ( Python )
+
+'''
+
+arrs = [[0,1,3],[0,1]]
+
+
+
+for arr in arrs:
+
+ print(f"Input: @array = {arr}")
+
+ arrlen = len(arr)
+
+ for x in range(arrlen+1) :
+
+ if x not in arr :
+
+ print("Output: ",x,"\n")
+
+
+
+'''
+
+SAMPLE OUTPUT
+
+python .\MissingNumbers.py
+
+Input: @array = [0, 1, 3]
+
+Output: 2
+
+
+
+Input: @array = [0, 1]
+
+Output: 2
+
+'''