Binary Search Patterns: Exact Match, Boundaries, and Search on Answer
Binary search in interviews is more than finding a value in a sorted array. This guide covers exact match, lower and upper bounds, and the search-on-answer pattern with practical TypeScript templates and edge-case checks.