/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ListNode* FindKthToTail(ListNode* pHead, int k) { // 空的判断 if (pHead == nullptr) return nullptr; // 两个指针 int i; ListNode* prev = pHead; ListNode* current = pHead; ...