Compress strings by removing adjacent repeated characters while keeping order.
Constraints
Example
>>> remove_consecutive_duplicates("aabbcc")
'abc'
>>> remove_consecutive_duplicates("hello")
'helo'
>>> remove_consecutive_duplicates("")
''
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints