博客园代码自定义高亮—测试

1)记得要设置默认编辑器Markdown
2)在写代码前后需要 添加 ```

void insert(int data)
{
    Node *newNode = new Node;
    newNode->data = data;
    newNode->pNext = nullptr;
    
    Node *p = head;
    if (head == nullptr)
    {
        head = newNode;
    }
    else
    {
        while (p->pNext != nullptr)
        {
            p = p->pNext;
        }
        p->pNext = newNode;
    }
}
上一篇:DOM


下一篇:LeetCode 82. 删除排序链表中的重复元素 II(Remove Duplicates from Sorted List II)