首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
链表反转
链表反转
mac
2024-05-24
35
public static LNode reverseLinked(LNode head) { LNode cur = head; LNode pre = null; while (cur != null) { LNode next = cur.next; cur.next = pre; pre = cur; cur = next; } return pre; }
转载请注明原文地址: https://mac.8miu.com/read-492324.html
最新回复
(
0
)