You are viewing a single comment's thread. Return to all comments →
My answer in Python
def superReducedString(s): print(s) pattern = r"(.)\1" while re.search(pattern, s): s = re.sub(pattern, "", s) print(s) if s: return s else: return "Empty String"
Seems like cookies are disabled on this browser, please enable them to open this website
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
My answer in Python