Frequency array: Example on strings
Frequency array: Example on strings
Problem
We are given two lowercase strings and . We need to check whether we can rearrange the letters of and get .
In other words, both strings must contain the same letters with the same frequencies.
Examples:
- , → answer is .