Goldman SachsCoding·180 minMembers
Equalize Letter Frequencies With Add / Remove
Members only
Given a lowercase string, each operation may add one letter or remove one existing letter. Return the minimum operations needed so every present letter has the same frequency.
RS
string
hashmap
greedy
medium
Frequency
Single report
Last asked
2025-09-10
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
