Remove Duplicates from Sorted List II at Arista Networks
Medium51.3% acceptance
This problem has 75.0% frequency at Arista Networks.
Problem Description
Given the `head` of a sorted linked list, _delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list_. Return _the linked list**sorted** as well_.
Read full problem and hintsTopics
Also asked at 9 companies
More Arista Networks Questions
Reverse Nodes in k-GroupHardReverse Linked List IIMediumReorder ListMediumRemove Linked List ElementsEasyCopy List with Random PointerMedium
View all Arista Networks questions