Support adding IDs and asking for the earliest ID that has appeared exactly once, with the query in O(1).
Support adding IDs and asking for the earliest ID that has appeared exactly once, with the query in O(1).
The discussion opens with the full question.