Simple implementation of Linked List in Python

Farooq Karimi Zadeh 9f32f9f19d implement index 1 year ago
.gitignore ea829bb96f add far.far 1 year ago
LICENSE 7192b3ceeb Initial commit 1 year ago
README.md d134167af0 add figure 1 year ago
linkedlist.py 9f32f9f19d implement index 1 year ago

README.md

linkedlist-ap4002

Simple implementation of Linked List in Python

Head[value] -> Node[value] -> Node[Value] -> None

API

  • __setitem__: Assign a value to the linked list
  • __getitem__(n): Get value from nth element of the linked list
  • index(value): Return index of the value
  • append(value): Append a value at the end of the linked list
  • prepend(value): Prepend a value at the beginning of the linked list