Pregunta de entrevista de Brigham Young University (BYU)

How would you code to check if one string contained a substring of another? (In linear time)