In what scenario, binary search can be used?



In what scenario, binary search can be used?..

Answer / Manish Kumar Singh

Binary search is an efficient search algorithm for sorted lists. It works by repeatedly dividing the search interval in half. The algorithm can be applied effectively in scenarios where:
1. The list or array being searched is already sorted.
2. You need to quickly find a specific value within the list or array.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Define double linked list?

1 Answers  


Does treemap allow null key?

1 Answers  


Which is the parent class of linkedlist class?

1 Answers  


How do you separate zeros from non-zeros in an array?

1 Answers  


Describe tree database.

1 Answers  


What is selection in an algorithm?

1 Answers  


Describe full binary tree and complete binary tree.

1 Answers  


Is map a collection?

1 Answers  


List out the advantages of using a linked list?

1 Answers  


Is queue fifo or lifo?

1 Answers  


Why would we use dynamically allocated arrays vs vectors?

1 Answers  


Which is faster hashmap or linkedhashmap?

1 Answers  


Categories