Java实现单链表的反转
public int value;
public Node next;
public Node(int data) {
value = data;
}
}
public static Node reverseLinkedList (Node head){
Node pre = null;
Node next = null;
while (head != null) {
next = head.next;
head.next = pre;
pre = head;
head = next;
}
return pre;
}
全部评论
相关推荐
点赞 评论 收藏
分享
2025-12-06 17:39
中国石油大学(华东) 前端工程师
rbjjj:太杂了吧,同学,项目似乎都没深度,都是api调度耶,分层架构思想没有体现出来了,前端没有前端优化前端工程化体现,后端微服务以及分层架构没体现以及数据安全也没体现,核心再改改,注重于计算机网络,工程化,底层原理吧 点赞 评论 收藏
分享
点赞 评论 收藏
分享
查看9道真题和解析