about | help | code help+videos | done | prefs |
removeRepeats() -- Given a String s containing only lower-case characters, return a String t in which all except the first occurrence of each character has been removed. For example, removeRepeats("llama") should return "lam", and removeRepeats("abracadabara") should return "abrcd". removeRepeats('llama') → 'lam' removeRepeats('abracadabara') → 'abrcd' removeRepeats('basketball') → 'basketl' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy