摘要: ###反转链表示例: 输入: 1->2->3->4->5->NULL 输出: 5->4->3->2->1->NULL ####思路 备份 旧head->next head->next更新为新节点 head 变为 旧head->next class Solution { public: ListNod 阅读全文
posted @ 2020-10-11 20:09 miyanyan 阅读(168) 评论(0) 推荐(0) 编辑