MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / LinkedList

Class LinkedList

Python/stack using linked list.py:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 self.next=next
5
6class LinkedList:
7 def __init__(self):
8 self.head=None
9
10 def __iter__(self):
11 curNode=self.head
12 while curNode:
13 yield curNode
14 curNode=curNode.next
15
16class Stack:
17 def __init__(self):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected