Find the Index of a Target in a Sorted Array of Distinct Integers
Company: Visa
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Overview: Practice locating a target value in a strictly increasing array of distinct integers, returning its zero-based index or -1 when it is absent. The task checks logarithmic-time search over sorted data, precise loop boundaries, and correct handling of single-element arrays and values that fall between or outside the stored elements.
Read the full Visa Software Engineer interview experience this question came from
Community answers
Answer by ss007
Answer by pdawn