Skip to content

rahulgurujala/LinkedList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doubly LinkedList implementation

Doubly LinkedList diagram

from LinkedList import LinkedList


linkedlist = LinkedList()
start_data = [1, 2, 3, 4, 5]
end_data = [6, 7, 8, 9, 10]

for i in start_data[::-1]:
    linkedlist.prepend(i)

for i in end_data:
    linkedlist.append(i)

print(linkedlist)

>>> <LinkedList([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])>

! First, create head nodes using the prepend method..

inspired by M2skills

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages