How to “delete” original linked list when splitting the linked list into odd and even?

前端 未结 0 893
半阙折子戏
半阙折子戏 2021-02-06 13:32

Here is the original code that I used:

void split(Node*& in, Node*& odds, Node*& evens)
{
    /* Add code here */
    if (!in) 
    {
        odds = N         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题