The complexity of using a set/map is logarithmic in the size of the set.
Multiply by the number of steps, you get what it takes.

Chris

Reply via email to