from linked_list import MyList, ListNode lst = MyList() nd = ListNode(1) lst.add(nd) nd = ListNode(2) lst.add(nd) nd = ListNode(3) lst.add(nd) lst.remove(2) for data in lst: print(data)
def __init__(self): self.my_queue = MyList()
def __init__(self): self.items = MyList()
def __init__(self): self.my_stack = MyList()
def __init__(self): self.my_set = MyList()
def __init__(self): self.linkedList = MyList()