leetcode_gym/_code/interviews/missingAndDuplicate.py

11 lines
153 B
Python
Raw Permalink Normal View History

a = [6, 5, 4, 2, 6]
# 1 . continuous integers randomly sorted
# 2. min, max
# 3. missing -> 3
# 4. duplicate -> 6
Q: are we given min and max?
for i