about | help | code help+videos | done | prefs |
Return a string identical to the original input parameter, but with anything between pairs of colons removed. There can be multiple pairs of colons in the string. Remove the text between the colons and also remove the colons themselves. The only exception is that a double colon "::" must result in a single colon in the resulting string. So that is like an escape code to request the inclusion of a single colon. Look at the test data for examples. may16_2016_SLHL_stringParse("What::::::?") → "What:::?" may16_2016_SLHL_stringParse("a::b:cdef:ghijk::lmno:pqrst:") → "a:bghijk:lmno" may16_2016_SLHL_stringParse("") → "" ...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: 290
Copyright Nick Parlante 2017 - privacy