No Duplicates

From programming_contest
Revision as of 20:37, 29 December 2017 by imported>Kmk21
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This problem asks us whether any word in the input is duplicated.

Store seen words in a hashmap. Even the n^2 brute force solution will work.