Strip consecutive duplicates from a string, keeping the original order.
Constraints
Example
>>> remove_duplicates('aabbcc')
'abc'
>>> remove_duplicates('aaabbbccc')
'abc'
>>> remove_duplicates('hello')
'helo'
>>> remove_duplicates('')
''
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints