ParentFull threadtrinovantes·In the worst case, you need to insert every element into your set to find out if there's no duplicate hence it'll take O(n log n) tooView on HN