← Questions

Equalize two strings' letter counts by deleting one letter

0
AmazonCodingLast asked Sep 2025

In each of two strings you pick one letter and delete any number of its occurrences (possibly none). Decide whether the two strings can end up similar, meaning every letter appears the same number of times in both.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding