* Reworked stub to clean up mutable default argument and missing special method. * Added bethanyg as contributor.
37 lines
464 B
Python
37 lines
464 B
Python
class EmptyListException(Exception):
|
|
pass
|
|
|
|
|
|
class Node:
|
|
def __init__(self, value):
|
|
pass
|
|
|
|
def value(self):
|
|
pass
|
|
|
|
def next(self):
|
|
pass
|
|
|
|
|
|
class LinkedList:
|
|
def __init__(self, values=None):
|
|
pass
|
|
|
|
def __iter__(self):
|
|
pass
|
|
|
|
def __len__(self):
|
|
pass
|
|
|
|
def head(self):
|
|
pass
|
|
|
|
def push(self, value):
|
|
pass
|
|
|
|
def pop(self):
|
|
pass
|
|
|
|
def reversed(self):
|
|
pass
|