vanillaes/computer-science

LinkedList

evanplaice opened this issue · 1 comments

A Linked List data structure. Used to store data in sequential order.

Checklist

  • api
  • implementation
  • tests
  • types
  • documentation

API

class LinkedList {
  // props
  size

  // methods
  add(item)
  addAll(items)
  remove(item)
  clear()
  [Symbol.iterator]()

  // classes
  class ListNode {}
}

Specifics

This implementation provides a singly-linked list. The list is created by boxing each item into a node and storing a reference to the next item in the list.

Notes

N/A

References

Added in v0.1