Split a string of a's and b's with at most 2 cuts so Alice and Bob get equal letter counts.
Unlock detailed company stats for this questionUpgrade
A story-wrapped problem. Given a string consisting of only the letters 'a' and 'b', where the number of 'a' and the number of 'b' are both even, you can make at most 2 cuts and divide the substrings between Alice and Bob so that the number of 'a' Alice has equals the number Bob has, and the number of 'b' Alice has equals the number Bob has. Return the index or indices of the cut(s).
Community answers
No answers contributed by the community yet.


