单链表指针反向(即链表地址逆转)
摘要://head为原始链表的头节点地址listNode *buf = head;listNode *pre = buf;while(head->next != NULL){ buf = head->next; head->next = buf->next; buf->next = pre; pre =
阅读全文
posted @ 2018-03-07 16:31
posted @ 2018-03-07 16:31
posted @ 2018-03-06 11:04
posted @ 2018-03-01 21:45
posted @ 2018-03-01 17:06