Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 306 Bytes

(7 kyu) Remove duplicate words.md

File metadata and controls

9 lines (5 loc) · 306 Bytes

Remove duplicate words (7 kyu)

http://www.codewars.com/kata/remove-duplicate-words

Your task is to remove all duplicate words from string, leaving only single words entries.

Input: 'alpha beta beta gamma gamma gamma delta alpha beta beta gamma gamma gamma delta'

Output: 'alpha beta gamma delta'