HashSet
A collection of unique values with fast membership tests.
HashSet
Loading interactive…
Examples
visited.insert("Rome")returnstruethe first time andfalsethe second, since the set keeps each value once.
See also
A collection of unique values with fast membership tests.
HashSet
Loading interactive…
Examples
visited.insert("Rome") returns true the first time and false the second, since the set keeps each value once.
See also