You are given two strings, s and t.
You are allowed to remove a contiguous substring from t starting at index left and ending at index right, where left right t.length. The score of this operation is defined as right left
Return the minimum possible score such that the remaining characters of t form a subsequence of s.
Note: A subsequence of a string is a new string formed from the original string by deleting some (can be none) of the characters without changing the relative order of the remaining characters.
Constraints:
s.length, t.length
s and t consist of only lowercase English letters.
You are given two strings, s and t.
You are allowed to remove a contiguous substring from t starting at index left and ending at index right, where left right t.length. The score of this operation is defined as right left
Return the minimum possible score such that the remaining characters of t form a subsequence of s.
Note: A subsequence of a string is a new string formed from the original string by deleting some (can be none) of the characters without changing the relative order of the remaining characters.
Constraints:
s.length, t.length
s and t consist of only lowercase English letters.