I\'ve noticed the table of the time complexity of set operations on the python official website. But i just wanna ask what\'s the time complexity of converting a list to a s
Yes. Iterating over a list is O(n) and adding each element to the hash set is O(1), so the total operation is O(n).
O(n)
O(1)