CPP Easy solution
class Solution {\npublic:\n    ListNode* deleteDuplicates(ListNode* head) {\n        ListNode* dummyNode=new ListNode(-1); \n    dummyNode->next=head;//add a ex
```class Solution {\npublic:\n    ListNode* deleteDuplicates(ListNode* head) {\n        ListNode* dummyNode=new ListNode(-1); \n    dummyNode->next=head;//add a extra node so that we can check that whether the repeated num starts from first node or not.\n    ListNode* curr=dummyNode;\n    \n    while(curr->next != NULL and curr->next->next != NULL){\n        if(curr->next->val != curr->next->next->val){\n          curr=curr->next;\n        }\n        else{\n            int value=curr->next->val;\n            \n            while(curr->next and curr->next->val == value){ //Checking repetitions of the duplicate node\n                curr->next=curr->next->next;\n            }\n        }\n    }\n    return dummyNode->next;\n    }\n};\n```\nPlease upvote if you like this solution .
['C', 'C++']