1,779 views

1 Answer

Best answer
7 votes
7 votes

In this language , first and last letter will be the same either a or b 

Also whatever comes in the middle will be occupied by the X.

hence , regular expression will be $a(a+b)^+a+ b(a+b)^+b$

selected by

Related questions

3 votes
3 votes
1 answer
1