use a set instead of vector for performance reasons
Lookup cost goes down from O(log n) to O(1). Not much gain in reality though.
parent
963c514b
Please register or sign in to comment
Lookup cost goes down from O(log n) to O(1). Not much gain in reality though.