Simple implementation of Linked List in Python
Farooq Karimi Zadeh 9f32f9f19d implement index | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
linkedlist.py | %!s(int64=2) %!d(string=hai) anos |
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