I am stuck in this question and took me 1 hour but still failed to solve it.
The language can contain any combination of "a" and "b" but both a's and b's length must be odd (individual length not combined length of string)
I tried to identify different combinations first of all which are possible, I was only able to solve this case
- abbbbbb......b
- baaaaaa......a
- aaaaaaa......b
- bbbbbbb......a
- a
- b
The expression I made to solve this combination was:
a(aa+bb)*b + b(aa+bb)*a + a + b
However I tried to solve other combinations but was not able to solve them. Please I need some assistance.