摘要: List ReverseList(List head) { if(head->next == NULL || head->next->next == NULL) { return head; /*链表为空或只有一个元素则直接返回*/ } ListNode *t = NULL, *p = he... 阅读全文
posted @ 2012-09-27 16:33 10,000 hours coder 阅读(171) 评论(0) 推荐(0) 编辑
摘要: static bool DelNodeWithOutHeadNode(CNode* &pDelNode) 将下一节点的数值复制到这个节点,实际上删除的是下一个节点 阅读全文
posted @ 2012-09-27 16:09 10,000 hours coder 阅读(329) 评论(0) 推荐(0) 编辑