254 views

1 Answer

Best answer
3 votes
3 votes

R = (0+1+|2+3+)*

When only 0,1 are used,

0101 , 0001 , 0011 , 0111 .

When only 2,3 are used.

2323, 2223, 2233, 2333

When both 0 , 1 and 2 , 3 are used.

0123, 2301 .

Hence total strings possible are 10(of length 4).

selected by

Related questions

0 votes
0 votes
1 answer
3
sripo asked Nov 5, 2018
2,628 views
Lets for a a given string aabbbccddI need to find the number of substrings possible how to go about it? Does the n(n+1)/2 formula work here also?