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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are arrays used for?

542


Why is hashmap used?

520


What is data structure and its types?

490


Explain the term tail recursion?

553


What are the advantages of modularity?

508






What are the scenarios in which an element can be inserted into the circular queue?

899


What is the difference between collections class vs collections interface?

535


What is the default size of arraylist?

485


What is a hash in programming?

495


What are the pre-requisite for the collection to perform binary search?

503


Compare Queue and Topic ?

663


Describe tree rotation in avl tree.

573


Why is hashmap faster?

491


What is non linear structure?

509


what are the applications of Linked Lists?

523