You are given two strings s and pattern.
A substring of s is considered almost equal to pattern if it has the same length as pattern and differs from pattern in at most
Return the minimum starting index of a substring in s that is almost equal to pattern. If no such substring exists, return
Constraints:
pattern.length s.length
s and pattern consist only of lowercase English letters.
You are given two strings s and pattern.
A substring of s is considered almost equal to pattern if it has the same length as pattern and differs from pattern in at most
Return the minimum starting index of a substring in s that is almost equal to pattern. If no such substring exists, return
Constraints:
pattern.length s.length
s and pattern consist only of lowercase English letters.