...
Programming-for-Output-Problems
September 30, 2023
ISRO-2016
September 30, 2023
Programming-for-Output-Problems
September 30, 2023
ISRO-2016
September 30, 2023

Data-Structures

Question 1

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 from the list?

A
O(n)
B
O(log2 n)
C
O(logn)
D
O(1)
Question 1 Explanation: 
Worst case complexity for deleting a node from singly linked list is O(1).
Correct Answer: D
Question 1 Explanation: 
Worst case complexity for deleting a node from singly linked list is O(1).
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!