2 ms·
For Python developers: this exists as collections.Counter.
by meowface 7y ago
For Python developers: this exists as collections.Counter.
- Twirrim 7y agoI stumbled across collections.Counter during last year's Advent of Code, and promptly kicked myself for the number of times I'd implmeented that by hand.