4k views

### How to subtract one list from another, treating each elements as distinct, assuming the smaller list is a subset of the larger list? [duplicate]

Suppose that I have two lists of different sizes, the smaller of which is a subset of the larger, e.g. a = {"A", "A", "A", "B", "B", "C"} b = {"A", "B"} How can ...
226 views

### Efficient way to compute a complement while respecting multiplicities [duplicate]

Suppose I have list2 which is a subset of list1. I want to get a res by deleting an element ...
327 views