Hashing

Hashing — frequency map & complement lookup

Step 1 / 10
You need to count how often each value appears while scanning an array once. Which structure fits best in practice?