...

/

Exercise 5: Eliminate Duplicates

Exercise 5: Eliminate Duplicates

Replace duplicate words with their numbers.

We'll cover the following...

Problem statement

This chapter explains how to use dictionaries for fast lookup of items (words, in our case). Keep a dictionary of the words that have been seen ...