Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.01 KB

File metadata and controls

21 lines (18 loc) · 1.01 KB

Singly Linked List definition

  1. a data structure that contains a head, tail, and lenght property.
  2. linked list consist of nodes, and each node has a value and a pointer to another node or null.

-only one direction -ONEWAY

+--+---------------------+----------------------------------+ | | Linked List | Arrays | +--+---------------------+----------------------------------+ +--+---------------------+----------------------------------+ | | NO IDX | IDX | +--+---------------------+----------------------------------+ | | | | | | connected via nodes | insertion and deletion | | | w/ a next pointer | can be expensive | +--+---------------------+----------------------------------+ | | sequential access: | direct access: | | | NO random access | quick access at the specific IDX | +--+---------------------+----------------------------------+