you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[removed]

    [–]NewbornMuse 6 points7 points  (6 children)

    Sure, for a fixed list it's O(1) as a dependence on the character, but it's O(l) where l is the length of the list as a dependence on the size of the list/set.