無聊刷LeetCode系列 203. 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

node

解題:人生有那麼多重要的事,浪費時間去算node的節點,還不如LINQ下一下比較快