Closed hellerve closed 1 year ago
This PR adds a Bag data structure, which acts as a set (only storing each thing once) that keeps track of the number of times an item was put in the structure. It’s thus a deduplicated, unordered collection.
Bag
Test cases are included.
Cheers
Nice!
This PR adds a
Bag
data structure, which acts as a set (only storing each thing once) that keeps track of the number of times an item was put in the structure. It’s thus a deduplicated, unordered collection.Test cases are included.
Cheers