Linked list

Hamza Javed
Nov 7 · 4 min read

A linked list is a data structure in computer science where each element is a separate object. Each node(we can also call each object a node) is pointing to the next node. The first node is called head and the last node is called a tail.

For example

5 → 78 → 88 → 53 →19

Over here 5 is the first node and also head, 19 is the tail and also the last node. 5 is pointing to 78 and 78 is pointing to 88 and so on. Together they create a sequence called a linked list.

Creating a linked list:

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade