We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think the problem forgot to state that adding a single char at an index to get match the frequencies also count
For example, "aabbc". If you add another c, it becomes valid. Hackerrank, fix this plz
However, the problem only states removing a single char at an index to get a match.
With the current state of this problem, "aabbc" should be "NO", not "YES"
Sherlock and the Valid String
You are viewing a single comment's thread. Return to all comments →
I think the problem forgot to state that adding a single char at an index to get match the frequencies also count
For example, "aabbc". If you add another c, it becomes valid. Hackerrank, fix this plz
However, the problem only states removing a single char at an index to get a match. With the current state of this problem, "aabbc" should be "NO", not "YES"