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 |
Define double linked list?
Does treemap allow null key?
Which is the parent class of linkedlist class?
How do you separate zeros from non-zeros in an array?
Describe tree database.
What is selection in an algorithm?
Describe full binary tree and complete binary tree.
Is map a collection?
List out the advantages of using a linked list?
Is queue fifo or lifo?
Why would we use dynamically allocated arrays vs vectors?
Which is faster hashmap or linkedhashmap?