Leetcode19刪除鏈表倒數第N個節點

1:掃描兩次 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* removeNthFromE
相關文章
相關標籤/搜索