2186. Minimum Number of Steps to Make Two Strings Anagram II
Содержание
class Solution:
def minSteps(self, s: str, t: str) -> int:
cnt = Counter(s)
for c in t:
cnt[c] -= 1
return sum(abs(v) for v in cnt.values())