Tell me about how you approach easy-level coding problems in interviews.
Explain your process briefly, then apply it to determine whether an integer array contains a duplicate value. Return True if any value appears at least twice, otherwise return False.
Use the function signature below. State assumptions, identify edge cases, and give the time and space complexity.
def contains_duplicate(nums):