Linked Lists — 2

A doubly linked list is a linked data structure that consists of a set of sequentially linked records called nodes. Each node contains two fields, called links, that are references to the previous and to the next node in the sequence of nodes.

⚠️ If you wan’t to learn more about linked-lists click here

Core

⚜️ The list

  1. Append

  2. AppendAt

  3. Remove

  4. RemoveAt

  5. Reverse

  6. Swap

  7. IsEmpty & Length

  8. Traverse

  9. Display

  10. Search

Lets’ begin!!

Initial List

All the code snippets you will see below are just Pseudo code.

🔅 Append

Append Operation

🔅 AppendAt

AppendAt Operation

🔅 Remove

Remove Operation

🔅 RemoveAt

RemoveAt Operation

🔅 Reverse

Reverse Operation

🔅 Swap

Swap Operation

🔅 IsEmpty & Length

IsEmpty & Length Operation

🔅 Traverse

Traverse Operation

🔅 TraverseReverse

TraverseReverse Operation

🔅 Search

Search Opeartion

Practice

  1. GeekForGeeks Double Linked List

  2. HackerRank Linked Lists

Last updated

Was this helpful?