Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

linked list

GATE CSE & IT · Data Structures - Linked Lists · 1994-2026

18
PYQs
94%
keyed
3
elite explanations
15
years appeared

Study anchor

Source-book anchor pending for this concept.

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2026 PYQ

Consider the following code snippet in C language that computes the number of nodes in a non-empty singly linked list pointed to by the pointer variable head. struct node{ int elt;...

easyanswer keyelite explanation
2026 PYQ

To keep track of free blocks in a file system, one of the two approaches is generally used - using bitmaps (bit vectors) or using linked lists. Consider that the linked list approa...

mediumbasic explanation
2025 Q38

A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures: P: Unsorted doubly...

mediumanswer key
2025 Q62

Let LIST be a datatype for an implementation of linked list defined as follows: typedef struct list { int data; struct list *next; } LIST; Suppose a program has created two linked...

mediumanswer key
2023 PYQ

Let SLLdel be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel be another function th...

easyanswer keybasic explanation
2021 PYQ

Consider the following ANSI C program: #include <stdio.h> #include <stdlib.h> struct Node{ int value; struct Node ⋆next;}; int main(){ struct Node ⋆boxE, ⋆head, ⋆boxN; int index =...

mediumanswer keybasic explanation
2020 PYQ

What is the worst case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order?

easyanswer keybasic explanation
2010 PYQ

The following C function takes a simply-linked list as input argument. It modifies the list by moving the last element to the front of the list and returns the modified list. Some...

easyanswer key
2008 PYQ

The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers...

easyanswer key
2005 PYQ

The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers...

easyanswer key
2004 PYQ

Let P be a singly linked list, Let Q be the pointer to an intermediate node x in the list.What is the worst-case time complexity of the best known algorithm to delete the node x fr...

easyanswer key
2003 PYQ

Consider the function f defined below. struct item { int data; struct item * next; }; int f(struct item *p) { return ((p == NULL) || (p ->next == NULL) || ((p->data <= p -> next ->...

easyanswer key
2002 PYQ

In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is

easyanswer key
2002 PYQ

In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is

easyanswer keyelite explanation
1997 PYQ

The concatenation of two lists is to be performed on 0(1) time. Which of the following implementations of a list should be used?

easyanswer keyelite explanation
1996 PYQ

Consider the following statements: (i) First-in-first out types of computations are efficiently supported by STACKS. (ii) Implementing LISTS on linked lists is more efficient than...

easyanswer key
1995 PYQ

Which of the following statements is true? I. As the number of entries in a hash table increases, the number of collisions increases. II. Recursive programs are efficient III. The...

easyanswer key
1994 PYQ

Linked lists are not suitable data structures of which one of the following problems?

easyanswer key