update
This commit is contained in:
parent
dc5d8f0dfd
commit
f588b88700
@ -13,6 +13,7 @@ func Reverse(root *ListNode) *ListNode {
|
||||
return pre
|
||||
}
|
||||
|
||||
/* 递归反转链表 */
|
||||
func ReverseRec(root *ListNode) *ListNode {
|
||||
if root == nil || root.Next == nil {
|
||||
return root
|
||||
|
Loading…
Reference in New Issue
Block a user