Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions data-structures/doubly-linked-list/doubly_linked_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ def top_back(self):
if self.is_empty():
print 'List is empty'
return

curr = self.head
while curr.next != None:
curr = curr.next

return curr.data

return self.tail.data

# removes the item at front of the linked list and return
def pop_front(self):
Expand Down