Open In App
Related Articles

ISRO | ISRO CS 2008 | Question 74

Improve Article
Save Article
Like Article

The minimum number of fields with each node of doubly linked list is
(A) 1
(B) 2
(C) 3
(D) 4

Answer: (C)

Explanation: In general, each node of doubly link list always has 3 fields, i.e., the previous node pointer, the data field, and the next node pointer, see – doubly linked list introduction

So, answer should be option (C) 3.

However, each node of doubly linked list can have only 2 fields, i.e., XOR pointer field, and data field. This XOR pointer field can points both previous node and next node, this is the best case with data field. This is called as memory efficient doubly linked list, see – XOR linked list – a memory efficient doubly linked list | set 1

Also, if we remove data node from the XOR linked list, then each node of this doubly linked list can have only 1 field, i.e., XOR pointer field. But, this is without data field so, this doubly linked list does not make sense.

Quiz of this Question

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 07 Sep, 2018
Like Article
Save Article
Similar Reads