合併兩個有序鏈表

  1 struct ListNode{ 2 int m_Value; 3 ListNode *m_pNext; 4 }; 5 6 ListNode *Merge(ListNode *pHead1,ListNode *pHead2){ 7 if(pHead1==NULL) 8 return pHead2; 9 else if(pHead2==NULL)
相關文章
相關標籤/搜索