Pergunta de entrevista da empresa Segmed (CA)

Algorithms and data structure questions, nothing particularly difficult.