7 kyu

Remove duplicate words

9,502 of 21,437e.mihaylin

Description:

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

Example:

Input:

'alpha beta beta gamma gamma gamma delta alpha beta beta gamma gamma gamma delta'

Output:

'alpha beta gamma delta'

Strings
Regular Expressions
Algorithms

More By Author:

Check out these other kata created by e.mihaylin

Stats:

CreatedJul 2, 2018
PublishedJul 2, 2018
Warriors Trained31239
Total Skips1279
Total Code Submissions66208
Total Times Completed21437
JavaScript Completions9502
Python Completions6261
Ruby Completions942
Haskell Completions197
Rust Completions410
C# Completions1329
PHP Completions785
C++ Completions328
TypeScript Completions409
CoffeeScript Completions13
Crystal Completions20
Java Completions1615
Elixir Completions128
Julia Completions38
CFML Completions16
Go Completions277
Total Stars249
% of votes with a positive feedback rating93% of 2652
Total "Very Satisfied" Votes2311
Total "Somewhat Satisfied" Votes311
Total "Not Satisfied" Votes30
Total Rank Assessments4
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • e.mihaylin Avatar
  • imjasonmiller Avatar
  • kazk Avatar
  • adrian.eyre Avatar
  • a.merezhanyi Avatar
  • Koziolek Avatar
  • ravenbluedragon Avatar
  • Souzooka Avatar
  • KenKamau Avatar
  • FArekkusu Avatar
  • bdw429s Avatar
  • ayaka14732 Avatar
  • lekowan Avatar
  • stellartux Avatar
  • hakr14 Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
Ad