【翻转链表】LeetCode 25. K 个一组翻转链表
摘要:
题目 https://leetcode.cn/problems/reverse-nodes-in-k-group/description/ 题解 首先分析特殊情况,当链表长度 \(n\) 与 \(k\) 相等的情况。以测试用例 \(head = [0,1,2,3], k = 4\) 进行分析: 使用 阅读全文
posted @ 2025-04-16 19:33 RomanLin 阅读(40) 评论(0) 推荐(0)
浙公网安备 33010602011771号