how to search an element in sorted linked list with time
complexity is O(log n).

Answers were Sorted based on User's Feedback



how to search an element in sorted linked list with time complexity is O(log n)...

Answer / baskerdearer

By using the skip list concept. we can search the sorted
linked list with O(log n).

Is This Answer Correct ?    35 Yes 10 No

how to search an element in sorted linked list with time complexity is O(log n)...

Answer / sniper

Yes u are right ...
here are the details

http://msdn.microsoft.com/en-us/library/ms379573%28v=vs.80%29.aspx#datastructures20_4_topic4

thanks ...

Is This Answer Correct ?    3 Yes 1 No

how to search an element in sorted linked list with time complexity is O(log n)...

Answer / pritam

we can use the binary search algorithm for this problem because this searching algorithm has O(log n) performance in both worse and average case.

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More Data Structures Interview Questions

What is data and data structure?

0 Answers  


What are scalar values?

0 Answers  


Define linear data structures?

0 Answers  


What are different techniques for making hash function?

0 Answers  


Tell me why can't constant values be used to define an array's initial size

0 Answers  






What is a list in data structure?

0 Answers  


State the difference between stacks and linked lists?

0 Answers  


Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?

0 Answers  


What is merge sort and how it works?

0 Answers  


How can you represent a linked list node?

0 Answers  


What are the different types of data type?

0 Answers  


Tell me why might quick sort might be better than merge sort?

0 Answers  


Categories