about | help | code help+videos | done | prefs |
Return a list of all words in a sentence, removing duplicates, leaving in original order. Ignore case. removeDuplicateWords("This one has a little star. This one has a little car.") → ["this", "one", "has", "a", "little", "star", "car"] removeDuplicateWords("One fish, two fish, red fish, blue fish") → ["one", "fish", "two", "red", "blue"] removeDuplicateWords("James while John had had had had had had had had had had had a better effect on the teacher") → ["james", "while", "john", "had", "a", "better", "effect", "on", "the", "teacher"] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 20
Copyright Nick Parlante 2017 - privacy