Daily Challenge #41

Duplicate Word Checker

  • Code a procedure called wordChecker that:
  • Accepts a string parameter
  • Remove instances of words that are repeated more than once (must be in sequence)
  • Returns the result with duplicates removed

Assumptions:

  • All words are in lower case

Examples:

1. goodbye bye bye world world world -> goodbye bye world
2. sam went went to to to his business to work -> sam went to his business to work
3. in inthe -> in inthe

3 Likes

Something good on a bad day:sweat_smile:

Blocks

Results

scrnli_10_24_2019_6-44-10%20PM

3 Likes

Try above too

1 Like

It is working:
scrnli_10_24_2019_6-50-55%20PM

3 Likes

Nice job @vknow360 - Let’s see if anyone else comes up with different approaches

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.