- how does python "in" operator works and what its BigO
- Python sorted() uses Timsort algorthim which is O(N*LogN)
- String slicing is O(N^2) since it is simply copying
- .join() O(N) is faster than += O(N^2) for strings
- set.difference() is O(N) and i guess set(A)^set(B) is O(N^2)
- collections.deque() is better for stacks if we don't care about the internal indexing as it is a double linked lists, but list might be better if the stack size will be small and we intend to access other elemetns inside the stack