Question d’entretien chez T. Rowe Price

How would you implement binary search?