diff --git a/problem1.py b/problem1.py new file mode 100644 index 00000000..87d77ac7 --- /dev/null +++ b/problem1.py @@ -0,0 +1,15 @@ +# problem 1 + +# https://leetcode.com/problems/missing-element-in-sorted-array/ + +class Solution: + def missingElement(self, nums: List[int], k: int) -> int: + high = len(nums)-1 + low = 0 + while(low