Match sub-string within a string with tolerance of 1 character mismatch

前端 未结 5 1666
天命终不由人
天命终不由人 2020-12-28 11:07

I was going through some Amazon interview questions on CareerCup.com, and I came across this interesting question which I haven\'t been able to figure out how to do. I have

5条回答
  •  旧巷少年郎
    2020-12-28 11:39

    This is related to a classical problem of IT, referred to as Levenshtein distance. See Wikibooks for a bunch of implementations in different languages.

提交回复
热议问题