No Duplicates

From programming_contest
Revision as of 23:50, 1 December 2017 by imported>Kmk21
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.