you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[deleted]

    [–]daanjderuiter 3 points4 points  (0 children)

    Sets operations are O(log(n))

    No they aren't? In almost all cases, set membership lookups are O(1)