about | help | code help+videos | done | prefs |
Write a method that returns the string that is surrounded by dashes. ( The input string is guaranteed to be dashes, following a string, then more dashes) getRidOfDashes("----heh----") → "heh" getRidOfDashes("-----whew------") → "whew" getRidOfDashes("--nanananana-----") → "nanananana" ...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: 100
Copyright Nick Parlante 2017 - privacy