Category
Get a Set representing the difference of a and b (a \ b). The order of parameters matters.
Set
a
b
a \ b
Time complexity: O(n)
Space complexity: O(n)
First iterable
Second iterable
A new Set which is the difference of a and b
Use Set#difference() instead.
Set#difference()
Get a
Set
representing the difference ofa
andb
(a \ b
). The order of parameters matters.Time complexity: O(n)
Space complexity: O(n)