Elior Kanfi
Results
2
issues of
Elior Kanfi
https://github.com/neetcode-gh/leetcode/blob/85d1f52d350efc88b3d8f53c973bfe47a97f4dc5/cpp/0021-merge-two-sorted-lists.cpp#L35-L42C1 there's code reuse here. I'd suggest creating a new node, which will be the dummy, and returning head->next, like this: ``` ListNode* dummy = new ListNode(); ListNode* curr =...
If you want to fix it :)