Solving Remove Linked List Elements in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Remove all elements from a linked list of integers that have value val.

Example :

Input:  1->2->6->3->4->5->6, val = 6
Output: 1->2->3->4->5

See the full details of the problem Remove Linked List Elements at LeetCode

Originally posted at: