Linked Lists — Knowledge Constructions & Algorithms for Knowledge Scientists | by Egor Howell | Oct, 2024

How linked lists and queues work underneath the hood

Picture by Luca Bravo on Unsplash

Following my earlier article on arrays, I wish to focus on the linked checklist knowledge construction and a few of its operations.

As knowledge scientists, though we’re not essentially anticipated to know knowledge constructions and algorithms inside-out, it’s nonetheless a useful ability set for any tech skilled.

That’s why I’m making a sequence of articles discussing the central knowledge constructions and the way they work underneath the hood.

Linked lists are a sort of knowledge construction during which every aspect, referred to as a node, is saved/works in a sequence. Nevertheless, they aren’t saved in reminiscence contiguously like arrays.

Every node has two issues:

  • Knowledge — The worth held by that node
  • Reference — Factors and incorporates the reference to the subsequent node within the sequence.