โ† Cisco questions

Implement binary search in three lines

Filed under Cisco

Implement the binary search algorithm to find the index of a target value in a sorted array. The implementation should be extremely concise, aiming for a minimal number of lines.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.