← Return

203. Remove Linked List ElementsEasy

Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head.