Tag: linkedlist


Doubly Linked List

A Doubly Linked List is a linear data structure which collectively represents a sequence of data in which each node has three parts. In this tutorial, we will learn about the implementation of a do...

Linked List

A Linked List or Singly Linked List is a linear data structure which collectively represents a sequence of data. In this tutorial, we will learn about the implementation of a singly linked list and...

Introduction to Linked list

In this introduction part of the linked list, we will learn about the basics of a Linked List, like its types and operations and we will also go through the advantages and disadvantages of a Linked...

Program to reverse a linked list

Given a linked list, write a program to reverse elements of a linked list. e.g.- for linked list 1 -> 2 -> 3 -> 4 -> 5, output should be 5 -> 4 -> 3 -> 2 -> 1.

Program to find middle element of a Linked List

Given a linked list, write a program to find middle element of a linked list. e.g.- for linked list 1 -> 2 -> 3 -> 4 -> 5, output should be 3.