2186. Minimum Number of Steps to Make Two Strings Anagram II
Medium
You are given two strings s
and t
. In one step, you can append any character to either s
or t
.
Return the minimum number of steps to make s
and t
anagrams of each other.
An anagram of a string is a string that contains the same characters with a different (or the same) ordering.
Example 1:
Example 2:
Constraints:
1 <= s.length, t.length <= 2 * 10^5
s
andt
consist of lowercase English letters.
解題
答案就是兩者a-z的數量差
Last updated