Oct-16-2020, 07:06 PM
Hello,
Please help me with this:
The function has two parameters, str1 and str2, and should return:
0 if both are identical (Dog and dog)
1 if there is one single different character and if you add/remove that, makes the two strings identical("spoke" and "poke", "poke" and "poker")
2 if the strings are not identical and cannot make them by adding/removing one character ("Java" and "Python", "Book" and "Boot")
All above are case-insensitive.
Thank you in advance.
Please help me with this:
The function has two parameters, str1 and str2, and should return:
0 if both are identical (Dog and dog)
1 if there is one single different character and if you add/remove that, makes the two strings identical("spoke" and "poke", "poke" and "poker")
2 if the strings are not identical and cannot make them by adding/removing one character ("Java" and "Python", "Book" and "Boot")
All above are case-insensitive.
Thank you in advance.