Given a string s and an integer k, determine the minimum number of character deletions required so that the resulting string contains at most k distinct characters.
Constraints:
s.length
k
s consists only of lowercase English letters.
Given a string s and an integer k, determine the minimum number of character deletions required so that the resulting string contains at most k distinct characters.
Constraints:
s.length
k
s consists only of lowercase English letters.