Removing elements from a list that are elements in another list

A

Adam Hartshorne

Hi All,

I was wondering if somebody could tell me if there is an efficient way
to do the following. Say I have a list(or vector) A and a list B, I want
to remove any elements in B, that are also elements in A.

Adam
 
N

Nitin Motgi

Adam said:
Hi All,

I was wondering if somebody could tell me if there is an efficient way
to do the following. Say I have a list(or vector) A and a list B, I want
to remove any elements in B, that are also elements in A.

Adam

Can you provide more information about the elements in the list or
vector.Like the type information. Because efficient algorithm IMO would
depend on the type of data in the vector/list. So if you could provide
that data I could give it a try.

Thank you,
Nitin Motgi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top