Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged linked-list
6
6 votes
2
2 answers
203
203 views
GO Classes DPP | GATE CS | Data Structures | Linked List Reverse
A singly linked list contains $n$ nodes. We want to reverse the order of the elements in the linked list by changing links, not by copying all elements into an array.Whic...
GO Classes
203
views
asked
Jul 6
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-315
data-structures
goclasses-ds-practice-questions
linked-list
+
–
7
7 votes
2
2 answers
200
200 views
GO Classes DPP | GATE CS | Data Structures | Final Head After Reversal
The following function is supposed to reverse a singly linked list:struct node { int data; struct node *next; }; static void reverse(struct node head_ref) { struct node ...
GO Classes
200
views
asked
Jul 6
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-315
data-structures
goclasses-ds-practice-questions
linked-list
+
–
8
8 votes
2
2 answers
202
202 views
GO Classes DPP | GATE CS | Data Structures | Linked List Reverse Implement
Consider the following C-style code fragment for reversing a non-empty singly linked list:curr = front; next = curr->next; prev = NULL; while (curr != NULL) { (*) } front...
GO Classes
202
views
asked
Jul 6
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-315
data-structures
goclasses-ds-practice-questions
linked-list
+
–
3
3 votes
3
3 answers
213
213 views
GO Classes DPP | GATE CS | Data Structures | Pointer Tracing
Consider the following singly linked list:$\texttt{'B' - 'A' - 'S' - 'E' - NULL}$The pointer $\texttt{head}$ points to the first node containing $\texttt{'B'}$.What chara...
GO Classes
213
views
asked
Jul 4
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
6
6 votes
2
2 answers
217
217 views
GO Classes DPP | GATE CS | Data Structures | Front and Rear Reference
A singly linked list maintains two pointers:struct Node *front; // points to first node struct Node *rear; // points to last nodeWhich operation would be inefficient when...
GO Classes
217
views
asked
Jul 4
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
9
9 votes
2
2 answers
234
234 views
GO Classes DPP | GATE CS | Data Structures | Find Middle Node
Consider the problem of finding the middle node in a list $l$ of size $n$, given that $n$ is odd. Count the number of accesses to positions of list $l$ needed to find the...
GO Classes
234
views
asked
Jul 4
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
7
7 votes
4
4 answers
225
225 views
GO Classes DPP | GATE CS | Data Structures | Delete Last Node
Consider the following C function intended to delete the last node of a singly linked list:void removeLast(struct Node *head) { struct Node *p = head; struct Node *q = p-...
GO Classes
225
views
asked
Jul 4
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
6
6 votes
3
3 answers
220
220 views
GO Classes DPP | GATE CS | Data Structures | Insert at Front
Consider the following structure:struct Node { int data; struct Node *next; };A function should insert a new node containing value $\texttt{x}$ at the beginning of a sing...
GO Classes
220
views
asked
Jul 4
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-314
data-structures
goclasses-ds-practice-questions
linked-list
+
–
5
5 votes
2
2 answers
276
276 views
GO Classes DPP | GATE CS | Data Structures | Linked List Traverse
Consider the following singly linked list:$\texttt{12 - 18 - 25 - 31 - 44 - 57 - NULL}$Now, consider the following function:int Size(struct Node *list) { int count = 0; w...
GO Classes
276
views
asked
Jul 3
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-313
data-structures
goclasses-ds-practice-questions
linked-list
numerical-answers
+
–
5
5 votes
2
2 answers
236
236 views
GO Classes DPP | GATE CS | Data Structures | Insertion in Linked List
A singly linked list is:$\texttt{5 - 8 - 20 - NULL}$A new node $\texttt{newP}$ contains data $9$. Pointer $\texttt{prevP}$ points to the node containing $8$.The inserti...
GO Classes
236
views
asked
Jul 3
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-313
data-structures
goclasses-ds-practice-questions
linked-list
+
–
4
4 votes
2
2 answers
193
193 views
GO Classes DPP | GATE CS | Data Structures | Delete by Value
A singly linked list is:$\texttt{5 - 8 - 20 - 9 - 20 - 7 - NULL}$The function $\texttt{deleteByValue(L, val)}$ removes only the first node whose data is equal to $\texttt...
GO Classes
193
views
asked
Jul 3
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-313
data-structures
goclasses-ds-practice-questions
linked-list
+
–
7
7 votes
1
1 answer
341
341 views
GO Classes DPP | GATE CS | Data Structures | Array vs Linked List
A sequence of $n$ elements is implemented in two ways:As a normal array with contiguous memory and no extra empty slot. As a singly linked list with only a $\texttt{head}...
GO Classes
341
views
asked
Jul 3
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-313
data-structures
goclasses-ds-practice-questions
array
linked-list
multiple-selects
+
–
6
6 votes
1
1 answer
189
189 views
GO Classes DPP | GATE CS | Data Structures | Linked List Complexity
For a singly linked list storing only the head pointer, which of the following operations can be done in worst-case $O(1)$ time?Access the $i$-th element Modify the $i$-t...
GO Classes
189
views
asked
Jul 3
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-313
data-structures
goclasses-ds-practice-questions
linked-list
multiple-selects
+
–
2
2 votes
1
1 answer
142
142 views
GO Classes DPP | GATE DA | Python Programming | Delete Nodes
Consider the following Python code:class Node: def __init__(self, data): self.data = data self.next = None a = Node("A") b = Node("B") c = Node("C") d = Node("D") a.next ...
GO Classes
142
views
asked
Jun 29
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-211
programming-in-python
goclasses-python-&-dsa-practice-questions
output
linked-list
+
–
2
2 votes
1
1 answer
119
119 views
GO Classes DPP | GATE DA | Python Programming | Insert Nodes
Consider the following Python code:class Node: def __init__(self, data): self.data = data self.next = None head = Node(20) tail = head new_first = Node(10) new_first.next...
GO Classes
119
views
asked
Jun 29
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-211
programming-in-python
goclasses-python-&-dsa-practice-questions
output
linked-list
+
–
2
2 votes
1
1 answer
111
111 views
GO Classes DPP | GATE DA | Python Programming | Traversal Length
Consider the following Python code:class Node: def __init__(self, data): self.data = data self.next = None n1 = Node(5) n2 = Node(10) n3 = Node(15) n4 = Node(20) n1.next ...
GO Classes
111
views
asked
Jun 29
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-211
programming-in-python
goclasses-python-&-dsa-practice-questions
output
linked-list
+
–
2
2 votes
2
2 answers
171
171 views
GO Classes DPP | GATE DA | Python Programming | Node Linking
Consider the following Python code:class Node: def __init__(self, data): self.data = data self.next = None a = Node("A") b = Node("B") c = Node("C") a.next = b b.next = c...
GO Classes
171
views
asked
Jun 29
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-211
programming-in-python
goclasses-python-&-dsa-practice-questions
output
linked-list
+
–
3
3 votes
2
2 answers
149
149 views
GO Classes DPP | GATE DA | Python Programming | Node Class
Consider the following Python code:class Node: def __init__(self, value): self.value = value self.next = None n1 = Node(10) n2 = Node(20) print(n1.value, n1.next, n2.valu...
GO Classes
149
views
asked
Jun 29
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-211
programming-in-python
goclasses-python-&-dsa-practice-questions
output
linked-list
+
–
7
7 votes
6
6 answers
1.8k
1.8k views
GATE CSE 2026 | Set 1 | Question: 29
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{...
gatecse
1.8k
views
asked
Feb 23
Data Structures
gatecse-2026-set1
data-structures
two-marks
linked-list
+
–
2
2 votes
1
1 answer
645
645 views
GATE CSE 2026 | Set 1 | Data Structures | Memory Based | Question 37
Consider the following code snippet in the C language that computes the number of nodes in a nonempty S.L.L. pointed by the pointer variable $\verb|head.struct node|$ { ...
GO Classes
645
views
asked
Feb 12
Data Structures
goclasses
gate2026_cs_set1_memorybased
data-structures
linked-list
one-mark
+
–
4
4 votes
1
1 answer
527
527 views
Ace Test series
Someone help with this...I am getting option-b but key is opt-aa)b)c)d)
Prem Sai Kodi
527
views
asked
Dec 13, 2025
Data Structures
linked-list
time-complexity
ace-test-series
+
–
3
3 votes
1
1 answer
615
615 views
linked list
Suppose that we use a linked list to represent a queue and that in addition to the enqueue and dequeue functions add a new operation to the queue that deletes the last el...
ASUR
615
views
asked
Oct 26, 2025
Data Structures
linked-list
data-structures
queue
+
–
0
0 votes
1
1 answer
209
209 views
UPSC CBI 2025 | Assistant Programmer | Question: 93
Which one of the following statements is one of the limitations of Waterfall Model?The phases have clearly defined end products (exit criteria), which in turn are conveni...
admin
209
views
asked
Oct 19, 2025
Others
upsc-cbi-ap-2025
linked-list
data-structures
+
–
3
3 votes
1
1 answer
506
506 views
UGC NET CSE | December 2023 | Part 2 | Question: 26
Which collision resolution technique involves maintaining a linked list of collided keys?Linear probingQuadratic probingChainingDouble hashing
Shubham Sharma 2
506
views
asked
Sep 9, 2025
Data Structures
ugcnetcse-dec2023
hashing
linked-list
data-structures
+
–
Page:
1
2
3
4
5
6
...
12
next »