Simple implementation of Linked List in Python
Farooq Karimi Zadeh 9f32f9f19d implement index | hace 2 años | |
---|---|---|
.gitignore | hace 2 años | |
LICENSE | hace 2 años | |
README.md | hace 2 años | |
linkedlist.py | hace 2 años |
Simple implementation of Linked List in Python
Head[value] -> Node[value] -> Node[Value] -> None
__setitem__
: Assign a value to the linked list__getitem__(n)
: Get value from nth element of the linked listindex(value)
: Return index of the valueappend(value)
: Append a value at the end of the linked listprepend(value)
: Prepend a value at the beginning of the linked list