@@ -0,0 +1,861 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/remove-linked-list-elements/%0A */%0Apublic class Problem203 %7B%0A    public static class ListNode %7B%0A        int val;%0A        ListNode next;%0A%0A        ListNode(int x) %7B%0A            val = x;%0A        %7D%0A    %7D%0A%0A    public ListNode removeElements(ListNode head, int val) %7B%0A        if (head == null) %7B%0A            return head;%0A        %7D%0A        while (head != null && head.val == val) %7B%0A            head = head.next;%0A        %7D%0A        ListNode node = head;%0A        while (node != null) %7B%0A            if (node.next != null) %7B%0A                while (node.next.val == val) %7B%0A                    node.next = node.next.next;%0A                    if (node.next == null) %7B%0A                        break;%0A                    %7D%0A                %7D%0A            %7D%0A            node = node.next;%0A        %7D%0A        return head;%0A    %7D%0A%7D%0A

Solve problem 203