Skip to content

@datastructures-js/linked-list-v5.0.0

Choose a tag to compare

@eyas-ranjous eyas-ranjous released this 12 Apr 16:57
· 133 commits to master since this release
b2ddd08

[5.0.0] - 2021-04-12

Changed

  • insert/remove methods now all returns the inserted/removed nodes.
  • insertLast in LinkedList now accepts a starting node as a second param, useful to insert a node at the end in O(1) runtime.
  • removeEach now returns the number of removed nodes.

Added

  • remove(node) to DoublyLinkedList to remove any node in O(1) runtime.
  • hasNext/hasPrev cleaner checks of connected nodes to Node classes.

Fixed

  • bug in removeEach method.
  • improved README, splitted LinkedList/DoublyLinkedList readmes.