Top "Set-difference" questions

The difference between two sets A and B consists of all elements that are in A but not in B.

Get difference between two lists

I have two lists in Python, like these: temp1 = ['One', 'Two', 'Three', 'Four'] temp2 = ['One', 'Two'] I need to create …

python performance list set set-difference
What is the fastest or most elegant way to compute a set difference using Javascript arrays?

Let A and B be two sets. I'm looking for really fast or elegant ways to compute the set difference (…

javascript arrays set-difference
MySQL: difference of two result sets

How can I get the set difference of two result sets? Say I have a result set (just one column …

mysql set-difference
c++ STL set difference

Does the C++ STL set data structure have a set difference operator?

c++ stl set stdset set-difference
Set difference versus set subtraction

What distinguishes - and .difference() on sets? Obviously the syntax is not the same, one is a binary operator, the …

python set subtraction set-difference
Not in In SQL statement?

I have set of ids in excel around 5000 and in the table I have ids around 30000. If I use 'In' …

sql sql-server tsql set-difference notin
Get distinct list between two lists in C#

I have two lists of strings. How do I get the list of distinct values between them or remove the …

c# list distinct-values set-difference
Difference and intersection of two arrays containing objects

I have two arrays list1 and list2 which have objects with some properties; userId is the Id or unique property: …

javascript arrays set-intersection set-difference set-operations
bash, Linux: Set difference between two text files

I have two files A-nodes_to_delete and B-nodes_to_keep. Each file has a many lines with numeric ids. …

bash file-io set-difference
How to receive difference of maps in java?

I have two maps: Map<String, Object> map1; Map<String, Object> map2; I need to receive …

java collections map set set-difference