No Duplicates

From programming_contest
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.