Implement lower_bound and upper_bound binary search
Company: Amazon
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Technical Screen
Quick Answer: This question evaluates proficiency with binary search, precise index and boundary management in sorted arrays, and the ability to reason about algorithmic correctness, loop invariants, and time/space complexity.