Pregunta de entrevista de Two Sigma

Some data structure and algorithms questions