lionelsamrat10 / LeetCode-Solutions

Contains the solutions of all the problems, I am solving on Leetcode.
https://github.com/lionelsamrat10/LeetCode-Solutions
MIT License
2 stars 1 forks source link

Create 82. Remove Duplicates from Sorted List II #113

Closed anaanya444 closed 3 years ago

anaanya444 commented 3 years ago

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.