Added linked list challenge.

This commit is contained in:
Donne Martin
2015-07-02 23:10:55 -04:00
parent f530111970
commit d79ee29ec8
4 changed files with 514 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
class Node(object):
def __init__(self, data, next_node=None):
self.next = next_node
self.data = data
@@ -8,6 +8,7 @@ class Node(object):
return self.data
class LinkedList(object):
def __init__(self, head=None):
self.head = head