about | help | code help+videos | done | prefs |
seperateChars
Given a string, return a version where all characters between [a-m] moved to the front and are separated "|" from other characters. However, if there are more than one occurrence of a character, only one of them needs to be kept. For instance: if the given string is "refrigerator", the result should be "efiga|rto" seperateChars("water") → "ae|wtr" seperateChars("refrigerator") → "efiga|rto" seperateChars("") → "|" ...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: 210
Copyright Nick Parlante 2017 - privacy