Unique Char Frequencies
Medium · Online assessment (OA) · Full-time
The problem was making a string "good" by deleting the minimum characters so no two different characters share the same frequency. I sorted the frequencies in descending order and greedily reduced duplicates. The interviewer asked about edge cases with ties and what happens when you have to push a frequency all the way down to zero.
