Minimum Ascii Delete Sum For Two Strings

1. You are given two strings S1 and S2.
2. You have to make these two strings equal by deleting characters. You can delete characters from any of the two strings.
3. The cost of deleting a character from any string is the ASCII value of that character.
4. You have to find the minimum ASCII sum of deleted characters.
Input Format
Two Strings S1 and S2
Output Format
A number representing the minimum ASCII sum of deleted characters.
Question Video
Constraints
1 <= length of strings S1 and S2 <= 1000
Sample Input
sea
eat
Sample Output
231


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name