Quant Memo
Coding/●●●●

Are two order tags anagrams

Two systems label the same order with scrambled tags. Decide whether one tag is a rearrangement of the other, that is, whether both use exactly the same characters with the same multiplicities.

a = "AAPL", b = "PLAA"
-> True
a = "AAPL", b = "APLE"
-> False

Return True if a and b are anagrams of each other, else False. Aim for O(n)O(n).

Your answer

This one is open-ended. Work it through, then check your reasoning against the full solution.

More Coding questions