Leetcode 2486. Append Characters to String to Make Subsequence
Jun 3, 2024 · 1 min read · Intuition Get the length of the subsequence (if any) and subtract it from the length of t to find out how many characters we have to append (if any) Approach Keep a count of the length of the subsequence while iterating through s and then subtract th...
Join discussion