about | help | code help+videos | done | prefs |
plusOut
Given a string and a non-empty word string, return a version of the original String where all chars have been replaced by pluses ("+"), except for appearances of the word string which are preserved unchanged. plusOut('aaxxxxbb', 'xx') → '++xxxx++' plusOut('123123', '3') → '++3++3' plusOut('12xy34', 'xy') → '++xy++' ...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