Return the index of first difference occurence between given string, number or array
Find similarity between two strings, based on Dice Similarity Coefficient DSC
This algorithm finds all occurrences of a pattern in a text in linear time. Let length of text be n and of pattern be m, then total time taken is O(m + n) with linear space complexity.