0
$\begingroup$

Having a lot of trouble figuring this out.

It seems to me to be impossible. I could do one side of the OR - but the fact that the string can begin with 100 1's and then have 200 b's seems like it can't be accounted for. Am I supposed to just stack every single a and b it traverses, and then somehow find a way to compare the numbers of each? Seems impossible.

$\endgroup$
2

0

Browse other questions tagged or ask your own question.