反轉鏈表與從尾到頭打印鏈表

反轉鏈表 ListNode* ReverseList(ListNode* pHead){ if(pHead == NULL) { return NULL; } if(pHead->next == NULL) { return pHead; } ListNode* pCur = pHead->next; ListNode*
相關文章
相關標籤/搜索