Python Solution For HackerRank Problem: Delete duplicate-value nodes from a sorted linked list
Delete duplicate-value nodes from a sorted linked list, is a HackerRank problem from Linked Lists subdomain. In this post we will see how we can solve this challenge in Python
You're given the pointer to the head node of a sorted linked list, where the data in the nodes is in ascending order. Delete as few nodes as possible so that the list does not contain any value more than once. The given head pointer may be null indicating that the list is empty.
For now do not be c ....
You can find the full details of the problem Delete duplicate-value nodes from a sorted linked list at HackerRank
Solution: Please check the delete-duplicate-value-nodes-from-a-sorted-linked-list.py snippet for the solution.
This solution originally posted at: Github by @srgnk