![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
面试题:复杂链表的复制题目:请实现函数ComplexListNode*Clone(ComplexListNode*pHead),复制一个
面试题:复杂链表的复制
题目:请实现函数ComplexListNode*Clone(ComplexListNode*pHead),复制一个复杂链表中,每个结点除了有一个m_pSibing指向链表中的任意结点或者NULL。结点的C++定义如下:
struct ComplexListNode
{
Int m_nValue;
ComplexListNode* m_pNext;
ComplexListNode* m_pSibling;
};
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)