@@ -0,0 +1,679 @@
+# Definition for singly-linked list.%0A# class ListNode(object):%0A#     def __init__(self, x):%0A#         self.val = x%0A#         self.next = None%0A%0Aclass Solution(object):%0A    def removeElements(self, head, val):%0A        %22%22%22%0A        :type head: ListNode%0A        :type val: int%0A        :rtype: ListNode%0A        %22%22%22%0A        dummy      = ListNode(0)%0A        dummy.next = head%0A        %0A        slow       = dummy%0A        fast       = dummy%0A        %0A        while fast.next != None:%0A            if fast.next.val != val:%0A                slow.next = fast.next%0A                slow      = slow.next%0A            fast = fast.next%0A        slow.next = None%0A            %0A        return dummy.next%0A

Create solution.py