Dec 30, 2008

Show the regular expression of the following description:

Show the regular expression of the following description:
strings containing equal number of substrings "01" and "10". For example, 101 has exactly one "10" and one "01" substring.

/0*1*0|1*0*1/

No comments:

Post a Comment