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 is binary tree in discrete mathematics?

626


Which sorting algorithm is considered the fastest?

768


What is harvesting in agriculture?

641


How do you find the second largest element in an array of integers?

752


What is the best case complexity of quicksort?

692


What is data structure and its operations?

628


When is a binary search algorithm best applied?

858


What are the different types of sorting in data structure?

687


What do u mean by array?

669


What is Doubly link list?

724


To describe the Complexity of Binary search, Quicksort and various other sorting and searching techniques..

730


Given M x N matrix with sorted elements row wise and column wise, find elements?

743


What are the Differences between map and hashmap?

693


Define linked lists?

670


What is the Insertion Sort Code?.

819