Let's say I have two lists, l1 and l2. I want to perform l1 - l2, which returns l1 with any elements that are also elements of l2 removed.
I can think of a naive loop approach to doing this, but that is going to be really inefficient. What is an efficient way of doing this in c++?
As an example, if I have l1 = [1,2,6,8] and l2 = [2,8], l1 - l2 should return [1,6]
thanks you guys