a) log 2 n
b) n⁄2
c) log 2 n – 1
d) n
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!