from typing import List


def array_diff2(a: List[int], b: List[int]):
    """
    Second version uses a list comprehension and only 1 set
    Time complexity O(n)
    """
    return [num for num in a if num not in set(b)]