0
Collapse Adjacent Duplicates code-golf
Challenge
Given a list of integers, return the list of these integers after removing all adjacent equal items.
Example:
[0, 1, 2, 4, 4, 2, 1, 1, 0]
First, you should remove 4, 4 and 1, 1 to get:
[0, 1, 2, 2, 0]
Now, you should remove 2, 2:
[0, 1, 0...