Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the complexity of adding an element to the heap?

934


Why using cookie to store session info is a better idea than just using session info in the request?

933


What is an recursive algorithm?

969


Is hashmap keyset ordered?

1005


How is the front of the queue calculated ?

1207


Explain the sorting algorithm that is most suitable to be used with single linked list?

842


Name few collections map implementations?

891


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

1405


Briefly explain recursive algorithm?

1029


What is harvesting in agriculture?

868


what are the applications of Linked Lists?

1015


Is list same as array?

833


Which is faster hashmap or hashset?

940


How do you sort in ascending order in arraylist?

870


Which language is best for data structures?

957