How do you do binary search?



How do you do binary search?..

Answer / Vinay Sagar

Binary search is a divide-and-conquer algorithm that finds the position of a target value within a sorted array by repeatedly dividing the search interval in half. The process continues until the target value is found or the interval containing it becomes empty.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Define the tree data structure.

1 Answers  


What are the topics in data structures?

1 Answers  


Which list does not allow duplicates?

1 Answers  


What is hashing technique? Describe in brief.

1 Answers  


What is the need for priority queue?

1 Answers  


When will you sort an array of pointers to list elements, rather than sorting the elements themselves?

5 Answers  


Explain Array of pointers?

1 Answers  


Define forest?

1 Answers  


How do arrays work?

1 Answers  


How many times is merge sort called?

1 Answers  


Is arraylist a class?

1 Answers  


What is a data structure definition?

1 Answers  


Categories