# Find first missing positive
# http://rosettacode.org/wiki/Find_first_missing_positive

# python 3.10


def find_first_missing_positive(l: list[int]):
    n = 1
    while n in l:
        n += 1
    return n


if __name__ == "__main__":
    nums = [[1, 2, 0], [3, 4, -1, 1], [7, 8, 9, 11, 12]]
    for num in nums:
        print(f"{num} -> {find_first_missing_positive(num)}")

# Find first missing positive
# http://rosettacode.org/wiki/Find_first_missing_positive

# python 3.10


def find_first_missing_positive(l: list[int]):
    n = 1
    while n in l:
        n += 1
    return n


if __name__ == "__main__":
    nums = [[1, 2, 0], [3, 4, -1, 1], [7, 8, 9, 11, 12]]
    for num in nums:
        print(f"{num} -> {find_first_missing_positive(num)}")

# Find first missing positive # http://rosettacode.org/wiki/Find_first_missing_positive # python 3.10