Which collection type guarantees unique elements?
Answer & explanation
Answer: Set
A `Set` models unique elements. A `List` permits duplicates and preserves positional order.
Practice collections with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: Set
A `Set` models unique elements. A `List` permits duplicates and preserves positional order.