摘要: 1、寻找链表的中点 // 找到链表的中点(快慢指针) public ListNode getMidNode(ListNode head) { ListNode slow = head; ListNode fast = head; while (fast.next != null && fast.ne 阅读全文
posted @ 2021-11-10 10:21 Peterxiazhen 阅读(42) 评论(0) 推荐(0) 编辑