NOTE
LinkedHashSet
A HashSet variant with deterministic insertion-order iteration.
This is a historical learning note and may contain outdated or incomplete understanding.
LinkedHashSet preserves insertion-order iteration while retaining hash-based set semantics.
Use it when uniqueness and predictable iteration order are both required. The linked-order bookkeeping costs additional memory compared with HashSet.
It is not a concurrent collection.