Pregunta de entrevista de Google

Asked mainly graph and DP problems.