LeetCode Question · Nov 2021

Microsoft | Engage Program | Interview Questions

5 upvotes 864 views 5 replies

Question Details

Given a string it is valid if all the characters have the same frequency or at most two different frequencies. Input - aabb is valid, Input - aabbccdd is valid, ...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Strings