Pregunta de entrevista de Scientific Games

Q: Can you write simple/pseudo-code to execute a binary search?

Respuesta de la entrevista

Anónimo

30 de jun de 2015

I was a little unsure about exactly what they wanted me to do (I immediately thought of searching through a binary tree), but then I ended up writing a messy code that may or may not have worked. The proceeding question made it clear that they intended for me to write a recursive function.

1