Simple implementation of Linked List in Python
Farooq Karimi Zadeh 9f32f9f19d implement index | 2 년 전 | |
---|---|---|
.gitignore | 2 년 전 | |
LICENSE | 2 년 전 | |
README.md | 2 년 전 | |
linkedlist.py | 2 년 전 |
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