Running time for converting list to set in Python
<p>In Python, what are the running time and space complexities if a list is converted to a set?</p>

<pre><code>Example:
data = [1,2,3,4,5,5,5,5,6]

# this turns list to set and overwrites the list
data = set(data)

print data 
# output will be (1,2,3,4,5,6)
</code></pre>