61. Rotate List

題目: 解答: 標記截斷的位置,重新連接鏈表即可。 代碼: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: L
相關文章
相關標籤/搜索