python怎么給定鏈表?
class ListNode: def __init__(self, x): self.val = x self.next = None l1 = new ListNode(0) l1.next = new ListNode(1)
python怎么給定鏈表?
class ListNode: def __init__(self, x): self.val = x self.next = None l1 = new ListNode(0) l1.next = new ListNode(1)