/dailyCodingProblem162

Daily Coding Problem is a mailing list for coding interview problems. Get exceptionally good at coding interviews by solving one problem every day.

Primary LanguageC

Daily Coding Problem 162

This problem was asked by Square.

Given a list of words, return the shortest unique prefix of each word. For example, given the list:

- dog
- cat
- apple
- apricot
- fish
- duck

Return the list:

- do
- c
- app
- apr
- f
- du