← Questions

Counter class with add, count and remove

0
MetaCodingLast asked Sep 2025

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding