单链表逆序(c/c++实现)
typedef struct LNode { int data; struct LNode *next;}LNode;LNode* reverse_linked_list(LNode *head) { LNode *next = NULL; LNode *prev = NULL; while (head) { next = head->next; head->...