双链表反转图解

可能有点绕

1.node.next –> node.pre;node.pre –> node.next(递归)
2.head.next –> None;tail.pre –> None
3.head–>tail;tail–>head

猜你喜欢

转载自www.cnblogs.com/LoveGdx/p/11518691.html