Remove Linked List Elements
Remove all elements from a linked list of integers that have value val.(移除链表中所有值为val的节点) 数据结构实验二练习4Example
Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val = 6
Return: 1 –> 2 –> 3 –> 4 –> 5我的思路:
1.遍历整个链
原创
2017-03-08 19:50:48 ·
156 阅读 ·
0 评论