Back to QuestionsPractice with This Question
Remove Duplicates from Sorted List
100.9K views•Asked at Amazon•
Easy
Question Explain
Given the head of a sorted linked list, delete all duplicates such that each element appears only once. The resulting list should also be sorted.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.