Solved

Suppose We Maintain a Linked List of Length N in Random

Question 92

Multiple Choice

Suppose we maintain a linked list of length n in random element order. What would be the big-Oh notation for an algorithm that prints each list element and the number of times it occurs in the list (without sorting the list) ?


A) O(1)
B) O(n)
C) O(n log2 n)
D) O(n2)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions