Implement binary search variants
Company: Uber
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates understanding and implementation of binary search variants, focusing on iterative and recursive algorithm design, boundary handling, duplicate occurrence detection (first/last), loop invariants, and formal correctness reasoning.