Answers and Comments


User Avatar
Written by aleksin


For sublinear time use Boyer–Moore string search algorithm. The execution time of the Boyer-Moore algorithm can be sub-linear: as it doesn't need to check every character of the string to be searched.

Wikipedia link:
http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm


Saved Stories

Sponsored Categories