I have list of thousand of strings sub_strings
, and list of millions of strings strings
I want to check if strings[i]
have substring from sub_strings
or substring that's different in 1 character
sub_strings = ['hello']
strings = ['hell dude whats good',
'hllo',
'hallo',
'hello',
'dude whats good']
is_substring_no_more_then_1_differnce(strings , sub_strings)
expected
[True, True, True, True, False]