What is binary search, and when is it more efficient than linear search?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain how binary search works, what it requires from the data, and when it beats a linear scan, with a realistic example. Tests time complexity reasoning, the sorted-input precondition, loop-bound details and judgment about when a simpler search or another structure fits better.