Pregunta de entrevista de Block

Typical algorithmic computer science questions.