Pregunta de entrevista de Intel Corporation

Lots of algorithm optimisation questions. some tricky.