Leetcode-206 反转链表
原题链接 https://leetcode-cn.com/problems/reverse-linked-list/
1 | type ListNode struct { |
题解
递归
1 | func reverseList(head *ListNode) *ListNode { |
非递归
1 | func reverseList(head *ListNode) *ListNode { |
Github: https://github.com/Junedayday/code_reading
Blog: http://junes.tech/
Bilibili: https://space.bilibili.com/293775192
公众号: golangcoding