Hash Table
3085. Minimum Deletions to Make String K-Special
Given a string word and a number k. A string is k-special if, for any two letters, the difference of their frequencies is ≤ k. Find the minimum number of character deletions to make word k-special.…
Loading…