LeetCode203. Remove Linked List Elements

Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 移除鏈表中對應的數字,思路很簡單…只需注意鏈表的第一個特殊處理一
相關文章
相關標籤/搜索