Aktiver Arbeitgeber
Write a function to search for a string within another string. Analyze it's complexity, and propose optimizations.
Anonym
Represent the string in Suffix Tree and u can find the pattern in O(m) time.
Use Boyer-moore algorithm.
@jimmy thanks http://www.movsd.com/bm.htm
I wonder if you had to code BM algorithm during the interview. That would be... hard...
Use Robin-karp or KMP algorithm
Verschaffe dir einen Vorsprung bei Chancen und Insider-Tipps, indem du deinem Traumunternehmen folgst.
Erhalte personalisierte Jobempfehlungen und Updates, indem du Suchanfragen startest.