Explain the pros and cons of two different data structures you have used and when you would pick each.
Implement unique_in_order(items) to return the distinct values from items in their first-seen order. Your implementation must use two data structures and should make their different roles clear. Discuss the time, space, ordering, lookup, and duplicate-handling trade-offs.
Signature: def unique_in_order(items):
Input is a list of hashable values. Return a list containing each value once, preserving its first occurrence.
Examples: ["hot", "new", "hot"] returns ["hot", "new"]; [3, 1, 3, 2] returns [3, 1, 2].
Constraints: 1 <= len(items) <= 10^4.
def unique_in_order(items):