Remove All Occurrences of a Substring by pattern
Anonymous User
582

Given string s,
remove from string (inplace) all the "smile" patterns,
e.g. ":-)))", ":-((".
"Smile" is a string, started with ":-" and finished with arbitrary number of "(" or ")".

Comments (2)