C#C
C#3y ago
Mayonaize

❔ Removing dupes in a linked list

I need to make a function that gets a linked list, and returns that linked list with all sequences of 3 or more consecutive equal numbers be removed
for example: 1,3,3,3,4,5,5,6,9,9,9,9
becomes
1,4,5,5,6
Was this page helpful?