Example #1
0
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)
Example #2
0
	def __init__(self):
		self.my_queue = MyList()
Example #3
0
 def __init__(self):
     self.items = MyList()
Example #4
0
 def __init__(self):
     self.my_stack = MyList()
Example #5
0
 def __init__(self):
     self.my_set = MyList()
Example #6
0
 def __init__(self):
     self.linkedList = MyList()