C++ #mimimalizm
cpp\nListNode* deleteDuplicates(ListNode* head, bool dup = false) {\n    if (head == nullptr)\n        return nullptr;\n    while (head->next != 0 && head->val 
```cpp\nListNode* deleteDuplicates(ListNode* head, bool dup = false) {\n    if (head == nullptr)\n        return nullptr;\n    while (head->next != 0 && head->val == head->next->val) {\n        dup = true;\n        head->next = head->next->next;\n    }\n    head->next = deleteDuplicates(head->next);\n    return dup ? head->next : head;\n}\n```
[]