not sure how to deal with ListNode class (python3)

some qutions use ListNode costum class, but I'm not sure how to deel with it. could someone tell me how to use it please?

"""
Definition for singly-linked list.
class ListNode:
def init(self, x):
self.val = x
self.next = None
"""

Comments (0)