You are viewing a single comment's thread. Return to all comments →
I like this too, but time complexity of set operations might be something to consider.
https://wiki.python.org/moin/TimeComplexity
Appears that set difference in Python is O(n).
Priyanka and Toys
You are viewing a single comment's thread. Return to all comments →
I like this too, but time complexity of set operations might be something to consider.
https://wiki.python.org/moin/TimeComplexity
Appears that set difference in Python is O(n).