Domanda di colloquio di T. Rowe Price

How would you implement binary search?