Tap here to switch tabs
Problem
Submissions

Problem: Minimum ASCII Delete Sum for Two Strings

Minimum ASCII Delete Sum for Two Strings gives you two strings and asks for the smallest total ASCII value of characters deleted so both strings become identical.

Statement

Given two strings s1 and s2, return the lowest ASCII {ASCII} sum of deleted characters required to make both strings equal.

Constraints:

  • 1≤1 \leq s1.length, s2.length ≤1000\leq 1000

  • s1 and s2 consist of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Minimum ASCII Delete Sum for Two Strings

Minimum ASCII Delete Sum for Two Strings gives you two strings and asks for the smallest total ASCII value of characters deleted so both strings become identical.

Statement

Given two strings s1 and s2, return the lowest ASCII {ASCII} sum of deleted characters required to make both strings equal.

Constraints:

  • 1≤1 \leq s1.length, s2.length ≤1000\leq 1000

  • s1 and s2 consist of lowercase English letters.