Counter class with add, count and remove

0
Remix

Write a class that stores strings with how many times each was added. Support add(s), count(s) and remove(s). Follow-ups: return the total count across everything stored, and how you would let it count any kind of value, not only strings.

MetaCodingLast asked Sep 2025
No answer yet. Write the first one; the best answer gets endorsed.