Binary Search Function

Programming Interview Medium 4 views
Back to Questions

Problem Description

Consider {x}. Output result.

Input Format

First line n. Second line n integers sorted. Third line x.

Output Format

One integer index.

Sample Test Case

Input:
5 1 3 5 7 9 7
Output:
3

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next