This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the index of the first occurence of given string in the phrase | |
* In case of no match, returns -1 | |
* | |
* @param text string to be searched | |
* @param pattern string to be found in the text | |
*/ | |
export function boyerMooreSearch(text: string, pattern: string): number { | |
// Handle edge case |