Two strings word1 and word2 are considered almost equivalent if the absolute difference between the frequencies of every character from 'a' to 'z' in word1 and word2 is at most
Given two strings word1 and word2, return true if word1 and word2 are almost equivalent, or false otherwise.
Constraints:
n word1.length word2.length
n
word1 and word2 consist only of lowercase English letters.
Two strings word1 and word2 are considered almost equivalent if the absolute difference between the frequencies of every character from 'a' to 'z' in word1 and word2 is at most
Given two strings word1 and word2, return true if word1 and word2 are almost equivalent, or false otherwise.
Constraints:
n word1.length word2.length
n
word1 and word2 consist only of lowercase English letters.