14 lines
304 B
Python
14 lines
304 B
Python
|
|
# Skeleton file for the Python "linked-list" exercise.
|
||
|
|
|
||
|
|
|
||
|
|
class Node(object):
|
||
|
|
def __init__(self, value, next=None, prev=None):
|
||
|
|
self.value = value
|
||
|
|
self.next = next
|
||
|
|
self.prev = prev
|
||
|
|
|
||
|
|
|
||
|
|
class LinkedList(object):
|
||
|
|
def __init__(self):
|
||
|
|
pass # Complete the Deque class ...
|