You are viewing a single comment's thread. Return to all comments →
def superReducedString(s): # Write your code here while re.search(r'([a-z])\1', s): s = re.sub(r'([a-z])\1', '', s) return 'Empty String' if len(s) == 0 else s
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 →