剑指offer 求链表的倒数第K个节点

1.快慢指针法spa /*指针struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public:     ListNode* FindKthToTail(ListNode* pListHead, unsigned int k)
相关文章
相关标签/搜索