Store a count against each key when you need frequencies. To find duplicates in one pass, keep a set of seen values. A repeated value is one already in the set before insertion.
- Section
- Study materials
- Kind
- Notes
- Subject
- Data structures
- Subtopic
- Hash maps
- Difficulty
- Beginner