C++ Super Simple Easy Iterative Solution
\nclass Solution {\npublic:\n    ListNode* deleteDuplicates(ListNode* head) {\n        ListNode *last = new ListNode(0), *new_head = last;\n        \n        wh
```\nclass Solution {\npublic:\n    ListNode* deleteDuplicates(ListNode* head) {\n        ListNode *last = new ListNode(0), *new_head = last;\n        \n        while (head) {\n            \n            if (head->next && head->val == head->next->val) {\n                while (head->next && head->val == head->next->val)\n                    head = head->next;\n            }\n            \n            else {\n                last->next = head;\n                last = head;\n            }\n            \n            head = head->next;\n        }\n        \n        last->next = NULL;\n        return new_head->next;\n    }\n};\n```
['C']