Minimum Characters To Append To String For Subsequence
Append characters to end of s so t becomes subsequence: return strlen($t) - $i; where i is index of last matched char in t.
2486. Append Characters to String to Make Subsequence
Medium
You are given two strings s and t consisting of only lowercase English letters.
Return the minimum number of characters that need to be appended to the end of s so that t becomes a subsequence of s.
A subsequence is a string that can be derived from another string by deleting some or no characters without changing the order of the remaining characters.
Example 1:
Input: s = "coaching", t = "coding"
Output: 4
Explanation: Append the characters "ding" to the end of s so that s = "coachingding".\
Now, t is a subsequence of s ("coaching...
            