github.com/weiwenchen2022/intset (go): Package intset provides IntSet, a compact and fast representation for sets of non-negative int values.  The time complexity of the operations Add, Remove and Has is in O(1) in practice those methods are faster and more space-efficient than equivalent operations on sets based on the Go map type. The Len, IsEmpty, Min, Max, and TakeMin operations require O(n).
Keywords: go|intset|library