README.md 438 B

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