Solutions for Lowest Positive Integer

    • @Geraldpof
    • @Charles, submitted in Python 3, achived 91% score
    def solve(arr):
    
        # initialize the set from array elements
        distinct = {*arr}
    
        # return first smallest missing positive number from the set
        index = 1
        while True:
            if index not in distinct:
                return index
            index += 1