Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sum(starmap(!=, zip_longest)) solution in Clear category for Fuzzy String Matching by Phil15
import itertools as it, operator as op
def fuzzy_string_match(s1: str, s2: str, threshold: int) -> bool:
return sum(it.starmap(op.ne, it.zip_longest(s1, s2))) <= threshold
Oct. 7, 2023
Comments: