Pregunta de entrevista de Anonymous

Based on arrays , dynamic programming,graphs