Pregunta de entrevista de Segmed (CA)

Algorithms and data structure questions, nothing particularly difficult.