What are singly linked lists and doubly linked lists?

By vivek kumar in 20 Jul 2024 | 08:55 pm
vivek kumar

vivek kumar

Student
Posts: 552
Member since: 20 Jul 2024

What are singly linked lists and doubly linked lists? 

20 Jul 2024 | 08:55 pm
0 Likes
Prince

Prince

Student
Posts: 557
Member since: 20 Jul 2024

What are singly linked lists and doubly linked lists? 


A singly linked list is a linear data structure where each element is a separate object, called a node. Each node contains two fields:

  1. Data: Stores the actual value or data.
  2. Next: A pointer/reference to the next node in the sequence.

In a singly linked list, each node points to the next node, and the last node points to NULL, indicating the end of the list.

21 Jul 2024 | 12:51 am
0 Likes

Report

Please describe about the report short and clearly.