Empresa activa
Write a function to search for a string within another string. Analyze it's complexity, and propose optimizations.
Anónimo
Represent the string in Suffix Tree and u can find the pattern in O(m) time.
Use Boyer-moore algorithm.
I wonder if you had to code BM algorithm during the interview. That would be... hard...
Use Robin-karp or KMP algorithm
@jimmy thanks http://www.movsd.com/bm.htm
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información de primera mano.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.