Binary Search

0

0 votes
Binary Search, medium, Easy
Problem

In a sorted array of elements, search for a given key.

Implement binary search or else you'll get time limit exceeded.!!!

Sample Input
5
1 2 3 4 5
5
1
2
3
4
5
Sample Output
1
1
1
1
1
Time Limit: 0.5
Memory Limit: 256
Source Limit:
Contributers:
Editor Image

?