- Newsletter Trivia

FT_NEWSLETTER

Difficulty Medium


Given two strings S1 and S2

count the minimum number of deletion and insertion

operations required to transform S1 into S2 by inserting and deleting the charecters.


Example 1

Input :

s1 = "great"

s2 = "create"

Output:

1 deletion and 2 insertion


Example 2

Input :

s1 = "bright"

s2 = "night"

Output:

2 deletion and 1 insertion


Example 3

Input :

s1 = "taught"

s2 = "forgot"

Output:

4 deletion and 4 insertion


Once your program runs successfully, upload your program file(s) on slack and send it to @rene recieve credit