We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 24: More Linked Lists
Day 24: More Linked Lists
Sort by
recency
|
716 Discussions
|
Please Login in order to post a comment
C#
This will remove all duplicates, not just the adjacent ones.
Since we know from contrains:
Constraints: The data elements of the linked list argument will always be in non-decreasing order.
The same number should be adjacent, therefore we just need to remove (that is, skip) the adjacent duplicate numbers.