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...


Explain what is binary search?



Explain what is binary search?..

Answer / Akshya Dixit

Binary search is an efficient algorithm used for searching a sorted array or linked list. It works by repeatedly dividing the search interval in half. If the value of the middle element matches the target, it returns the index. Otherwise, it continues with the left or right subarray depending on whether the target is less than or greater than the middle element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

what is Singly Linked list?

1 Answers  


How will you reverse Linked List.

1 Answers  


Why is data structure needed?

1 Answers  


Differentiate between set and map.

1 Answers  


Explain quick sort and merge sort algorithms.

1 Answers  


When will we get ArrayStoreException?

1 Answers  


How do you define a set?

1 Answers  


What are the different types of collections?

1 Answers  


Which is better arraylist or linkedlist?

1 Answers  


What is difference between treeset hashset linkedhashset?

1 Answers  


What is homogeneous array?

1 Answers  


Tell me can the size of operator be used to tell the size of an array passed to a function?

1 Answers  


Categories