function r=f(s,t)
s
=lower
(s
);t
=lower
(t
);u
=unique
([s t
]);r
=sum
(abs(histc
(s
,u
)-histc
(t
,u
)));
end %// needed in online compiler only
input1 = 'This is not exactly like Levenshtein distance,';
input2 = 'but you''ll notice it is quite similar.';
f(input1, input2)
ZnVuY3Rpb24gcj1mKHMsdCkKcz1sb3dlcihzKTt0PWxvd2VyKHQpO3U9dW5pcXVlKFtzIHRdKTtyPXN1bShhYnMoaGlzdGMocyx1KS1oaXN0Yyh0LHUpKSk7CgplbmQgJS8vIG5lZWRlZCBpbiBvbmxpbmUgY29tcGlsZXIgb25seQoKaW5wdXQxID0gJ1RoaXMgaXMgbm90IGV4YWN0bHkgbGlrZSBMZXZlbnNodGVpbiBkaXN0YW5jZSwnOwppbnB1dDIgPSAnYnV0IHlvdScnbGwgbm90aWNlIGl0IGlzIHF1aXRlIHNpbWlsYXIuJzsKZihpbnB1dDEsIGlucHV0Mik=