Minimum Insertions and Deletions
Medium

Problem Statement

Find the minimum number of insertions and deletions to convert string 'a' to string 'b'.

Examples

1Example 1
Input:
{ "a": "heap", "b": "pea" }
Output:
3
2Example 2
Input:
{ "a": "geeksforgeeks", "b": "geeks" }
Output:
8
3Example 3
Input:
{ "a": "sea", "b": "eat" }
Output:
2
Loading...

Sign in to Run Code and Submit