wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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

A
n2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
log2n1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
n
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
log2n
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C n
Linear search number of comparisons : O(n)

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Encoding and Decoding
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon