List là collection có thứ tự và cho phép trùng lặp: [1, 2, 2, 3]. Set là collection không có thứ tự với các phần tử duy nhất: {1, 2, 3}. Map lưu trữ cặp key-value: {"name": "John", "age": 30}.
Chọn List khi thứ tự quan trọng, Set cho giá trị duy nhất và tra cứu O(1), Map cho truy xuất theo key.
List is an ordered collection allowing duplicates. Set is an unordered collection with unique elements only. Map stores key-value pairs.
Choose List when order matters, Set for unique values and O(1) lookups, Map for key-based data retrieval.