289 views

1 Answer

1 votes
1 votes

A = Number of string contain exactly 3 0’s 

B= Number of string contain exactly 3 1’s 

|A U B |  = |A| + |B| - |A intersecton B| 

A= 10!/3!7!

B=10!/3!7!

|A intersecton B| = 0

|A U B |  = 120+120-0 =240

Related questions

0 votes
0 votes
1 answer
1
sripo asked Nov 5, 2018
2,711 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?
3 votes
3 votes
2 answers
3
Akriti sood asked Nov 7, 2016
6,734 views
A palindrome is a string whose reversal is identical to the string. How many bit strings of length n are palindromes? 2⌈n⁄2⌉ 2(⌊ n/2⌋ ) 2⌈n⁄2⌉ -1 2(�...
3 votes
3 votes
1 answer
4
Arjun asked May 30, 2016
1,043 views
How to generate permutation of a string? What will be the complexity?