摘要: public class 反转链表 { public static class ListNode{ public int data; public ListNode next; } public static ListNode reverseList(ListNode pHead){ ListNod 阅读全文
posted @ 2022-05-22 21:44 七色angel 阅读(13) 评论(0) 推荐(0) 编辑
摘要: public class 链表两两反转 { public static class ListNode{ public int data; public ListNode next; } public ListNode swapPairs(ListNode head){ // 链表头增加虚拟结点 du 阅读全文
posted @ 2022-05-22 17:09 七色angel 阅读(76) 评论(0) 推荐(0) 编辑